forked from gonum/gonum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
112 lines (96 loc) · 2.38 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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.12.x
- 1.11.x
- 1.10.x
- master
os:
- linux
- osx
- windows
env:
global:
- GO111MODULE=on
- GOFLAGS="-mod=readonly"
matrix:
- TAGS=""
- TAGS="-tags bounds"
- TAGS="-tags noasm"
- TAGS="-tags appengine"
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
git:
depth: 1
matrix:
fast_finish: true
exclude:
- os: osx
go: 1.12.x
env: TAGS="-tags bounds"
- os: osx
go: 1.12.x
env: TAGS="-tags noasm"
- os: osx
go: 1.12.x
env: TAGS="-tags appengine"
- os: osx
go: 1.11.x
- os: osx
go: 1.10.x
- os: osx
go: master
- os: windows
go: 1.12.x
env: TAGS="-tags bounds"
- os: windows
go: 1.12.x
env: TAGS="-tags noasm"
- os: windows
go: 1.12.x
env: TAGS="-tags appengine"
- os: windows
go: 1.11.x
- os: windows
go: 1.10.x
- os: windows
go: master
allow_failures:
- go: master
before_install:
# Make sure we have the origin master to compare HEADs and
# save the sha for comparison in test-coverage.sh.
# It is necessary to do this here since the rigmarole for
# Windows loses the link to the real origin master.
- git fetch --depth=1 origin master
- export ORIGIN_MASTER=$(git ls-remote origin master | cut -f1)
# This garbage is necessary because on windows, Travis
# helpfully sets core.autocrlf to true.
#
# The block here repeats the clone after having unset
# core.autcrlf. There is no simple way to do this
# conditionally on OS because windows will not allow
# a file to be removed or moved while the file is open,
# and we use constructed paths to scripts to get
# conditional execution.
#
# Happy windowsing!
- pushd ../../..
- mv github.com/savalin/gonum .
- git config --global core.autocrlf false
- git clone gonum github.com/savalin/gonum
- popd
- ${TRAVIS_BUILD_DIR}/.travis/run-parts ${TRAVIS_BUILD_DIR}/.travis/deps.d/${TRAVIS_OS_NAME}
addons:
apt:
packages:
- graphviz
go_import_path: github.com/savalin/gonum
# 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/run-parts ${TRAVIS_BUILD_DIR}/.travis/run.d/${TRAVIS_OS_NAME}