|
@@ -13,7 +13,7 @@ addons:
|
|
|
packages:
|
|
|
- libxml2-dev
|
|
|
|
|
|
-go_import_path: gopkg.in/src-d/hercules.v4
|
|
|
+go_import_path: gopkg.in/src-d/hercules.v5
|
|
|
go:
|
|
|
- 1.9.x
|
|
|
- 1.10.x
|
|
@@ -25,7 +25,7 @@ cache:
|
|
|
- $HOME/gopath/src
|
|
|
before_cache:
|
|
|
- cd $HOME/gopath
|
|
|
- - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v4
|
|
|
+ - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v5
|
|
|
|
|
|
matrix:
|
|
|
fast_finish: true
|
|
@@ -65,8 +65,8 @@ script:
|
|
|
- go vet -tags tensorflow ./...
|
|
|
- golint -set_exit_status ./...
|
|
|
- flake8
|
|
|
- - if [[ $TRAVIS_GO_VERSION != 1.9.* ]]; then go test -coverpkg=all -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v4/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt; fi
|
|
|
- - if [[ $TRAVIS_GO_VERSION = 1.9.* ]]; then go test -v -cpu=1,2 gopkg.in/src-d/hercules.v4/...; fi
|
|
|
+ - if [[ $TRAVIS_GO_VERSION != 1.9.* ]]; then go test -coverpkg=all -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v5/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt; fi
|
|
|
+ - if [[ $TRAVIS_GO_VERSION = 1.9.* ]]; then go test -v -cpu=1,2 gopkg.in/src-d/hercules.v5/...; fi
|
|
|
- $GOPATH/bin/hercules version
|
|
|
- $GOPATH/bin/hercules --burndown --couples --quiet --pb https://github.com/src-d/hercules > 1.pb
|
|
|
- cp 1.pb 2.pb
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
|
os: osx
|
|
|
osx_image: xcode9.3
|
|
|
go: 1.11.x
|
|
|
- go_import_path: gopkg.in/src-d/hercules.v4
|
|
|
+ go_import_path: gopkg.in/src-d/hercules.v5
|
|
|
before_install:
|
|
|
- wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip
|
|
|
- unzip -d ~/.local protoc.zip && rm protoc.zip
|
|
@@ -105,7 +105,7 @@ jobs:
|
|
|
- stage: deploy
|
|
|
os: linux
|
|
|
go: 1.11.x
|
|
|
- go_import_path: gopkg.in/src-d/hercules.v4
|
|
|
+ go_import_path: gopkg.in/src-d/hercules.v5
|
|
|
before_install:
|
|
|
- wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
|
|
|
- unzip -d ~/.local protoc.zip && rm protoc.zip
|