Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit ebbe634

Browse files
Denys Smirnovdennwc
authored andcommitted
update sdk to latest version
Signed-off-by: Denys Smirnov <[email protected]>
1 parent b3845d7 commit ebbe634

File tree

11 files changed

+20
-34
lines changed

11 files changed

+20
-34
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ go:
66
services:
77
- docker
88

9+
env:
10+
- BBLFSHD_VERSION=v2.6.1
11+
912
before_script:
1013
- curl -L https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 > $GOPATH/bin/dep
1114
- chmod +x $GOPATH/bin/dep
1215
- dep ensure --vendor-only
1316
- go get ./vendor/gopkg.in/bblfsh/sdk.v2/cmd/...
1417
- go install ./vendor/gopkg.in/bblfsh/sdk.v2/cmd/...
15-
- docker pull bblfsh/bblfshd
18+
- docker pull bblfsh/bblfshd:$BBLFSHD_VERSION
1619

1720
script:
1821
- bblfsh-sdk update --dry-run
1922
- bblfsh-sdk build ci-build
20-
- bblfsh-sdk test ci-build
23+
- bblfsh-sdk test --bblfshd $BBLFSHD_VERSION ci-build
2124

2225
after_success:
2326
- bblfsh-sdk push ci-build

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ LABEL maintainer="source{d}" \
5757
WORKDIR /opt/driver
5858

5959
# copy static files from driver source directory
60-
ADD ./native/src/main/sh/native.sh ./bin/native
60+
ADD ./native/native.sh ./bin/native
6161

6262

6363
# copy build artifacts for native driver

Dockerfile.build.tpl

Lines changed: 0 additions & 8 deletions
This file was deleted.

Dockerfile.tpl

Lines changed: 0 additions & 9 deletions
This file was deleted.

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# for detailed Gopkg.toml documentation.
33

44
[[constraint]]
5-
branch = "v2"
65
name = "gopkg.in/bblfsh/sdk.v2"
6+
version = "v2.1.x"
77

88
[prune]
99
go-tests = true

Makefile

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# java-driver ![Driver Status](https://img.shields.io/badge/status-beta-dbd25c.svg) [![Build Status](https://travis-ci.org/bblfsh/java-driver.svg?branch=master)](https://travis-ci.org/bblfsh/java-driver) ![Native Version](https://img.shields.io/badge/java%20version-8.171.11--r0-aa93ea.svg) ![Go Version](https://img.shields.io/badge/go%20version-1.9-63afbf.svg)
1+
# Java driver for [Babelfish](https://github.com/bblfsh/bblfshd) ![Driver Status](https://img.shields.io/badge/status-beta-dbd25c.svg) [![Build Status](https://travis-ci.org/bblfsh/java-driver.svg?branch=master)](https://travis-ci.org/bblfsh/java-driver) ![Native Version](https://img.shields.io/badge/java%20version-8.171.11--r0-aa93ea.svg) ![Go Version](https://img.shields.io/badge/go%20version-1.9-63afbf.svg)
22

33

44

@@ -8,14 +8,14 @@ Development Environment
88
Requirements:
99
- `docker`
1010
- [`bblfsh-sdk`](https://github.com/bblfsh/sdk) _(go get -u gopkg.in/bblfsh/sdk.v2/...)_
11-
- UAST converter dependencies _(go get -t -v ./...)_
11+
- UAST converter dependencies _(dep ensure --vendor-only)_
1212

13-
To initialize the build system execute: `bblfsh-sdk prepare-build`, at the root of the project. This will install the SDK at `.sdk` for this driver.
13+
To initialize the build system execute: `bblfsh-sdk update`, at the root of the project. This will generate the `Dockerfile` for this driver.
1414

15-
To execute the tests just execute `make test`, this will execute the test over the native and the go components of the driver. Use `make test-native` to run the test only over the native component or `make test-driver` to run the test just over the go component.
15+
To execute the tests just execute `bblfsh-sdk test`, this will execute the test over the native and the go components of the driver using Docker.
1616

17-
The build is done executing `make build`. To evaluate the result using a docker container, execute:
18-
`docker run -it bblfsh/java-driver:dev-<commit[:7]>-dirty`
17+
The build is done executing `bblfsh-sdk build`. To evaluate the result using a docker container, execute:
18+
`bblfsh-sdk build test-driver && docker run -it test-driver`.
1919

2020

2121
License

build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go-runtime:
55
native:
66
image: 'openjdk:8-jre-alpine'
77
static:
8-
- path: 'src/main/sh/native.sh'
8+
- path: 'native.sh'
99
dest: 'native'
1010
build:
1111
image: 'openjdk:8-slim'

fixtures/_integration.java.legacy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ CompilationUnit {
2828
. . . . internalRole: types
2929
. . . }
3030
. . . Children: {
31-
. . . . 0: Identifier {
31+
. . . . 0: SimpleName {
32+
. . . . . Roles: Expression,Identifier
33+
. . . . . TOKEN "Testcls1"
3234
. . . . . StartPosition: {
3335
. . . . . . Offset: 6
3436
. . . . . . Line: 1
@@ -40,7 +42,6 @@ CompilationUnit {
4042
. . . . . . Col: 15
4143
. . . . . }
4244
. . . . . Properties: {
43-
. . . . . . Name: Testcls1
4445
. . . . . . internalRole: name
4546
. . . . . }
4647
. . . . }

0 commit comments

Comments
 (0)