forked from Konstantin8105/c4go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (79 loc) · 2.91 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
language: go
go:
- "1.10"
os:
- linux
# Mac osx is too different clang
# - osx
env:
global:
secure: "p/4P6/KQKnkUmTQPUkkuu/Q9n4KR9tno5i6gBf9yJ/SbBRg1YTM5G5QvvZUasOAOeb8sxQaoJqd+H6Jmnj3sgB/zBFrAId+S8IMckuUMPLGvt928MXA+R1DdRDr9arHGKodyaF6VUJkQU78IQusv71FDvV2bdesMJPNc27l3WbEJPEoPGpQMiM6pgZgYFEnpRHTgi3Fmp5FN9jR+evQpPOwvsAVfNuLH2kZ3prk7XDpP2Nx0SmdwVzSKiKFW8XyiM6aHmjWLOOIDbmIynD1Hl2iUTEhbzubIPgBmYt3AbgYL4WzmnnZEfKMFmVGjHmdNIiW1EndI4iLjCpqdTWqOLY7kge8DW+/eURb0WsIAJJsllc/D6P9l2SU1v9PJROdY2dLI5oO06PSvFgXgpyCz0IG1ARYw2JF9JxG1kkNtdcPindn3mlPTcfwHUh41y7mZEYBD22NMl9AyWE1Igqgx2TEYZf+TcyUpV2pLxY7QwcCrga77iCiSrzylKLvrgABaU/zgQXEUe2Oymv4LvgtiwMBJl6x+80yVEMdIMHb10IShThzEgcmMDd1rNDt8k48A3GUVaFi4xu4i3Zoiq2OGQLNOKmejWpNYYHP7iD6gTqRwV5h9t+iTobbxs1WkJfh5VMHKaLN1qQmEz3Nzr08zZ8rkAJ9X3Xf588HhZKVvVsQ="
matrix:
- SCRIPT=test CLANG=3.9
matrix:
include:
####################################################
# Too old
#
# - env: SCRIPT=test CLANG=3.4
# os: linux
# if: branch = master
####################################################
- env: SCRIPT=test CLANG=3.5
os: linux
if: branch = master
- env: SCRIPT=scripts CLANG=7
os: linux
if: branch = master
####################################################
# commented for minimaze build
#
# - env: SCRIPT=test CLANG=3.6
# os: linux
# if: branch = master
# - env: SCRIPT=test CLANG=3.7
# os: linux
# if: branch = master
# - env: SCRIPT=test CLANG=3.8
# os: linux
# if: branch = master
#
####################################################
- env: SCRIPT=test CLANG=7
os: linux
- env: SCRIPT=test CLANG=8
os: linux
####### lint checking ########
- env: SCRIPT=lint CLANG=3.9
os: linux
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-$CLANG main"
sudo apt-get install lzip ## Added for scripts/ed.sh
sudo apt-get update
sudo apt-cache search clang
sudo apt-get install -f -y --force-yes clang-$CLANG lldb-$CLANG libmad0-dev
# else
# brew install llvm
fi
# gocovmerge is used to merge all the separate unit/integration test coverage
# profiles.
- go get -u -v github.com/wadey/gocovmerge
# code style
- go get -u -v github.com/Konstantin8105/cs
# for tests
- go get -u -v golang.org/x/sys/unix
# install gometalinter
# - go get -u github.com/alecthomas/gometalinter
# - gometalinter --install
script:
- . ./scripts/$SCRIPT.sh
after_success:
- include_cov=coverage.txt bash <(curl -s https://codecov.io/bash)
after_failure:
# Print out the failures (removing a lot of the noise).
# For example :
# - cat /tmp/out.txt | grep -v -- "--- PASS" | grep -v -- "=== RUN"