Debian Codegraph @

.travis.yml

raw symbols SCIP
1 sudo: false
2
3 language: go
4 go_import_path: gonum.org/v1/plot
5
6 # Versions of go that are explicitly supported by gonum.
7 go:
8 - 1.14.x
9 - 1.13.x
10 - master
11 matrix:
12 fast_finish: true
13 allow_failures:
14 - go: master
15
16 env:
17 global:
18 - GO111MODULE: "on"
19
20 # Get coverage tools, and start the virtual framebuffer.
21 before_install:
22 # Required for format check.
23 - go get golang.org/x/tools/cmd/goimports
24 # Required for imports check.
25 - go get gonum.org/v1/tools/cmd/check-imports
26 # Required for copyright header check.
27 - go get gonum.org/v1/tools/cmd/check-copyright
28 # Required for coverage.
29 - go get golang.org/x/tools/cmd/cover
30 - go get github.com/mattn/goveralls
31
32 # Get deps, build, test, and ensure the code is gofmt'ed.
33 # If we are building as gonum, then we have access to the coveralls api key, so we can run coverage as well.
34 script:
35 - ${TRAVIS_BUILD_DIR}/.travis/check-copyright.sh
36 - ${TRAVIS_BUILD_DIR}/.travis/check-formatting.sh
37 - go get -d -t -v ./...
38 - go build -v ./...
39 - go test -v ./...
40 - test -z "$(gofmt -d .)"
41 - if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash ./.travis/test-coverage.sh; fi
42 - ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh