2222 - 1.9.x
2323 - 1.10.x
2424 - tip
25+ cache :
26+ directories :
27+ - $HOME/.cache/pip
28+ - $HOME/gopath/src
29+ before_cache :
30+ - cd $HOME/gopath
31+ - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v3
2532
2633matrix :
2734 fast_finish : true
@@ -33,31 +40,36 @@ stages:
3340 - deploy
3441
3542env :
36- - PROTOC_VERSION=3.5.1 TENSORFLOW_VERSION=1.7 .0
43+ - PROTOC_VERSION=3.6.0 TENSORFLOW_VERSION=1.8 .0
3744
3845before_install :
3946 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
4047 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
4148 - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
4249 - unzip -d ~/.local protoc.zip && rm protoc.zip
4350 - go get -v github.com/golang/lint/golint
44- - git clone --depth 1 https://github.com/src-d/go-git $GOPATH/src/gopkg.in/src-d/go-git.v4
51+ - rm -rf $GOPATH/src/gopkg.in/src-d/go-git.v3
52+ - git clone --depth 1 https://github.com/src-d/go-git $GOPATH/src/gopkg.in/src-d/go-git.v3
4553 - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
4654 - export PATH=~/usr/bin:$PATH
4755 - make --version
4856 - pip3 --version
4957 - pip3 install --user --no-build-isolation -r requirements.txt tensorflow
5058 - docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
51- - docker exec -it bblfshd bblfshctl driver install --all
59+ - docker exec -it bblfshd bblfshctl driver install python bblfsh/python-driver:latest
60+ - docker exec -it bblfshd bblfshctl driver install go bblfsh/go-driver:latest
61+ - docker exec -it bblfshd bblfshctl driver install java bblfsh/java-driver:latest
5262 - curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-$TENSORFLOW_VERSION.tar.gz" | sudo tar -C /usr/local -xz
5363 - sudo ldconfig
5464install :
65+ - git clean -xfd
5566 - make
5667script :
5768 - set -e
5869 - go vet -tags tensorflow ./...
5970 - golint -set_exit_status ./...
60- - go test -tags tensorflow -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
71+ - 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.v3/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt; fi
72+ - if [[ $TRAVIS_GO_VERSION = 1.9.* ]]; then go test -v -cpu=1,2 gopkg.in/src-d/hercules.v3/...; fi
6173 - $GOPATH/bin/hercules version
6274 - $GOPATH/bin/hercules --burndown --couples --quiet --pb https://github.com/src-d/hercules > 1.pb
6375 - cp 1.pb 2.pb
7789 os : osx
7890 osx_image : xcode9.3
7991 go : 1.10.x
92+ go_import_path : gopkg.in/src-d/hercules.v3
8093 before_install :
8194 - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip
8295 - unzip -d ~/.local protoc.zip && rm protoc.zip
@@ -96,16 +109,15 @@ jobs:
96109 - stage : deploy
97110 os : linux
98111 go : 1.10.x
112+ go_import_path : gopkg.in/src-d/hercules.v3
99113 before_install :
100114 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
101115 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
102116 - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
103117 - unzip -d ~/.local protoc.zip && rm protoc.zip
104- - curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-$TENSORFLOW_VERSION.tar.gz" | sudo tar -C /usr/local -xz
105- - sudo ldconfig
106118 script : skip
107119 install :
108- - make
120+ - DISABLE_TENSORFLOW=1 make
109121 after_success :
110122 - gzip -S .linux_amd64.gz $GOPATH/bin/hercules
111123 deploy :
0 commit comments