-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (33 loc) · 932 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
36
language: python
matrix:
include:
- os: linux
sudo: false
python: 2.7
- os: linux
sudo: false
python: 3.5
- os: osx
language: generic
install:
- echo "$GOROOT" # test for https://github.com/travis-ci/travis-ci/issues/6388
- unset GOROOT # see https://github.com/travis-ci/travis-ci/issues/6388
script:
# test default version
- ./gohere.py goroot # --test
- ./goroot/bin/go version
- ./goroot/bin/go env
- mkdir gopath
- GOPATH=$(pwd)/gopath ./goroot/bin/go get -race github.com/starius/racesync
- ./gopath/bin/racesync
# test generation of scripts
- ./gohere.py --echo > run.sh
- chmod +x run.sh
- ./run.sh goroot-echo
- ./goroot-echo/bin/go version
- ./goroot-echo/bin/go env
- mkdir gopath-echo
- GOPATH=$(pwd)/gopath-echo ./goroot-echo/bin/go get -race github.com/starius/racesync
- ./gopath-echo/bin/racesync
# test all versions
- ./test.py