-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (26 loc) · 705 Bytes
/
.travis.yml
File metadata and controls
30 lines (26 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: go
sudo: false
go:
- master
- 1.7
- 1.6
- 1.5
- 1.4
matrix:
include:
- go: 1.7
env: task=bench
- go: master
env: task=bench
- go: master
env: task=clean
install:
- file=protoc-3.1.0-linux-x86_64.zip
- ( cd /tmp ; wget https://github.com/google/protobuf/releases/download/v3.1.0/$file )
- ( cd $HOME/gopath ; unzip /tmp/$file bin/protoc )
- go get github.com/golang/protobuf/protoc-gen-go
- go get -t -v ./...
script:
- if [[ "$task" == "" ]]; then set -e ; ./all.bash test && bash <(curl -fsS https://codecov.io/bash) ; fi
- if [[ "$task" == "bench" ]]; then exec ./script/bench ; fi
- if [[ "$task" == "clean" ]]; then exec ./script/clean ; fi