forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
204 lines (188 loc) · 4.88 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
sudo: false
language: python
python:
- 3.4
- 3.5
.disable_global: &disable_global
addons: false
cache: pip
before_install: false
install: false
before_script: false
script: false
after_success: false
after_failure: false
before_deploy: false
deploy: false
stages:
- name: sentinel
if: branch != master OR type = pull_request
- test
- moban
- name: unsupported
if: branch = master AND type = push
.check_moban: &check_moban
<<: *disable_global
python: 3.6
stage: moban
install: pip install moban
script: .ci/check_moban.sh
if: branch != master OR type = pull_request
jobs:
include:
- stage: sentinel
# All other jobs will be cancelled if the sentinel job fails
<<: *disable_global
python: 3.6
install: pip install -r requirements.txt ".[alldeps]"
script: coala --non-interactive -V
- python: 2.7
stage: unsupported
env: PIP_NO_COMPILE=1
addons: false
before_install: true
install: pip install 3to2
before_script: true
script: .ci/check_unsupported.sh
- python: 3.3
stage: unsupported
env: PIP_NO_COMPILE=1
addons: false
before_install: true
install: true
before_script: true
script: .ci/check_unsupported.sh
- python: 3.6
stage: moban
addons: false
cache: pip
before_install: false
install: pip install moban
before_script: false
script: .ci/check_moban.sh
after_success: false
after_failure: false
if: branch = master AND type = push
- *check_moban
allow_failures:
- *check_moban
dist: trusty
.apt_sources: &apt_sources
- ubuntu-toolchain-r-test
- avsm # OPAM stable
- hvr-ghc # Haskell
- sourceline: # R
deb https://cloud.r-project.org/bin/linux/ubuntu trusty-cran35/
key_url:
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x51716619E084DAB9
- sourceline: # Julia
deb http://ppa.launchpad.net/staticfloat/juliareleases/ubuntu trusty main
key_url:
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xCF979FFA3D3D3ACC
- sourceline: # Go
deb http://ppa.launchpad.net/ondrej/golang/ubuntu trusty main
key_url:
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x4F4EA0AAE5267A6C
- sourceline: # astyle
deb http://ppa.launchpad.net/cs50/ppa/ubuntu trusty main
key_url:
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x5BDA2E974A0E822C
addons:
apt:
sources: *apt_sources
packages:
- aspcud
- astyle
- cabal-install-1.24
- chktex
- clang-3.4
- cppcheck
- devscripts
- flawfinder
- gfortran
- ghc
- golang-go
- happy
- indent
- julia
- libarpack2
- libblas-dev
- libcolamd2.8.0
- libfftw3-3
- liblapack-dev
- libopenblas-base
- libpaper-utils
- libperl-critic-perl
- libumfpack5.6.2
- libxml2-utils
- luarocks
- mercurial
- menhir
- mono-mcs
- ocaml
- opam
- php-codesniffer
- r-base
- verilator
cache:
pip: true
directories:
- docs/_build
# Installed language package caches
- ~/.cabal
- ~/.ghc
- ~/.ghc-mod
- ~/R/Library
- ~/.julia
- ~/.luarocks
- $TRAVIS_BUILD_DIR/node_modules
- $TRAVIS_BUILD_DIR/.bundle
- $TRAVIS_BUILD_DIR/vendor
# coala managed data
- ~/nltk_data
# Installed linters
- ~/infer-linux64-v$INFER_VERSION
- ~/.local/
env:
global:
- TERM=dumb
- R_LIB_USER=~/R/Library
- LINTR_COMMENT_BOT=false
- CABAL_VERSION=1.24
- INFER_VERSION=0.7.0
- PATH="$HOME/.local/bin:/opt/cabal/$CABAL_VERSION/bin:$PATH:$TRAVIS_BUILD_DIR/node_modules/.bin:$TRAVIS_BUILD_DIR/vendor/bin:$HOME/.cabal/bin:$HOME/infer-linux64-v$INFER_VERSION/infer/bin:$HOME/.local/tailor/tailor-latest/bin:$HOME/.luarocks/bin"
before_install:
- nvm install 6.10.2
# Remove Ruby directive from Gemfile as this image has 2.2.5
- sed -i '/^ruby/d' Gemfile
- .ci/deps.sh
- .ci/deps.go.sh
- .ci/deps.cabal.sh
- .ci/deps.r.sh
- .ci/deps.opam.sh
- .ci/deps.java.sh
# https://github.com/coala/coala/issues/3183
- cp requirements.txt requirements.orig
- printf '%s\n%s\n%s\n'
"$(cat test-requirements.txt)"
"$(grep -v '^-r' docs-requirements.txt)"
"$(cat bear-requirements.txt requirements.txt)"
> requirements.txt
before_script:
- mv requirements.orig requirements.txt
- .ci/deps.coala-bears.sh
script:
- python setup.py bdist_wheel
- pip install $(ls ./dist/*.whl)"[alldeps]"
- bash .ci/tests.sh
# Ensure bear requirements are in sync with the bear PipRequirement
- .ci/generate_bear_requirements.py --check --update
- git diff --exit-code
- coala --non-interactive
- codecov
- python setup.py docs
notifications:
email: false
branches:
exclude:
- /^sils\//