Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test Go 1.9.x, 1.10.x and tip #70

Merged
merged 5 commits into from
May 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ addons:

go_import_path: gopkg.in/src-d/hercules.v3
go:
- 1.8
- 1.9
- 1.9.x
- 1.10.x
- tip

matrix:
fast_finish: true
allow_failures:
- go: tip

stages:
- test
- deploy

env:
- PROTOC_VERSION=3.5.1 TENSORFLOW_VERSION=1.6.0
- PROTOC_VERSION=3.5.1 TENSORFLOW_VERSION=1.7.0

before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
Expand All @@ -40,7 +46,7 @@ before_install:
- export PATH=~/usr/bin:$PATH
- make --version
- pip3 --version
- pip3 install --user -r requirements.txt tensorflow
- pip3 install --user --no-build-isolation -r requirements.txt tensorflow
- docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
- docker exec -it bblfshd bblfshctl driver install --all
- 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
Expand All @@ -49,7 +55,7 @@ install:
- make
script:
- set -e
- go vet ./...
- go vet -tags tensorflow ./...
- golint -set_exit_status ./...
- go test -tags tensorflow -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
- $GOPATH/bin/hercules version
Expand All @@ -69,7 +75,8 @@ jobs:
include:
- stage: deploy
os: osx
go: 1.9
osx_image: xcode9.3
go: 1.10.x
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
Expand All @@ -88,7 +95,7 @@ jobs:
tags: true
- stage: deploy
os: linux
go: 1.9
go: 1.10.x
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
Expand Down