-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
36 lines (29 loc) · 996 Bytes
/
.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
sudo: false
language: go
# Do not move these lines; they are referred to by README.md.
# Versions of go that are explicitly supported by gonum plus go tip.
go:
- 1.14.x
- 1.13.x
- master
matrix:
fast_finish: true
allow_failures:
- go: master
before_script:
# Required for format check.
- go install golang.org/x/tools/cmd/goimports
# Required for coverage.
- go install golang.org/x/tools/cmd/cover
- go install github.com/mattn/goveralls
go_import_path: gonum.org/v1/tools
# Get deps, build, test, and ensure the code is gofmt'ed.
# If we are building as gonum, then we have access to the coveralls api key, so we can run coverage as well.
script:
- ${TRAVIS_BUILD_DIR}/.travis/check-formatting.sh
- go get -d -t -v ./...
- go build -v ./...
- if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash ./.travis/test-coverage.sh; fi
- ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh
# This is run last since it alters the tree.
- ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh