-
Notifications
You must be signed in to change notification settings - Fork 234
/
.travis.yml
57 lines (54 loc) · 1.8 KB
/
.travis.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: go
sudo: false
matrix:
include:
- go: 1.x
- go: 1.13.x
- go: 1.x
arch: amd64
- name: "arch: arm64"
go: 1.x
arch: arm64
env:
- PYTHON_COMMAND=python3
- name: "arch: i686"
go: 1.x
arch: amd64
env:
- PYTHON_COMMAND=python3
- GOARCH=386
- CGO_ENABLED=1
- SKIP_PYTHON_BINDINGS_TESTS=1
- name: "arch: ppc64le"
go: 1.x
arch: ppc64le
env:
- PYTHON_COMMAND=python3
- name: "Bazel Check"
go: 1.x
script: ./travisBazel.sh
before_install:
- echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
- curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
- sudo apt-get update && sudo apt-get install bazel
- name: "Make Check go 1.x"
go: 1.x
before_install:
- echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
- curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
- sudo apt-get update && sudo apt-get install bazel make
- sudo apt install python3-dev
- pip install -U pytest --user
script: make all
before_install:
- sudo apt install python3-dev
- pip install -U pytest --user
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/fatih/color
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/sergi/go-diff/diffmatchpatch
script: ./travisBuild.sh
env:
- PYTHON_COMMAND=python