-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
70 lines (59 loc) · 1.6 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
58
59
60
61
62
63
64
65
66
67
68
69
70
sudo: required
language: go
# Versions of go that are explicitly supported by gonum.
go:
- 1.16.x
- 1.15.x
- master
go_import_path: gonum.org/v1/netlib
os:
- linux
- osx
env:
global:
- GO111MODULE=on
matrix:
- BLAS_LIB=OpenBLAS
# Does not currently link correctly. Note that there is an issue with drotgm in ATLAS.
# - BLAS_LIB=ATLAS
# If we can get multiarch builds on travis.
# There are some issues with the Accellerate implementation.
#- BLAS_LIB=Accellerate
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
# Persist the compiled OpenBLAS library between CI calls.
- .travis/OpenBLAS.cache
git:
depth: 1
matrix:
fast_finish: true
allow_failures:
- go: master
exclude:
- os: linux
env: BLAS_LIB=Accelerate
- os: linux
env: BLAS_LIB=ATLAS
- os: osx
env: BLAS_LIB=ATLAS
- os: osx
env: BLAS_LIB=OpenBLAS
before_install:
# Required for format check.
- go get golang.org/x/tools/cmd/goimports
# Required for imports check.
- go get gonum.org/v1/tools/cmd/check-imports
# Required for copyright header check.
- go get gonum.org/v1/tools/cmd/check-copyright
# Install the appropriate blas library (if any) and associated gonum software.
install:
- travis_wait 20 ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/$BLAS_LIB/install.sh
script:
- ${TRAVIS_BUILD_DIR}/.travis/check-copyright.sh
- ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh
- ${TRAVIS_BUILD_DIR}/.travis/check-formatting.sh
- ${TRAVIS_BUILD_DIR}/.travis/$TRAVIS_OS_NAME/$BLAS_LIB/test.sh
# This is run last since it alters the tree.
- ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh