forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (72 loc) · 1.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
# use Travis container build infrastructure
sudo: false
matrix:
include:
- env: ACTION=checkformatting
language: python
python: '3.6'
install: pip install tox>=3.8.0
script:
make checkformatting
# Python (backend) tests
- env: ACTION=tox
language: python
python: '2.7'
addons:
postgresql: "9.4"
before_install:
- ./scripts/elasticsearch.sh
install: pip install tox>=3.8.0
before_script: createdb htest
script: tox
after_success:
make coverage codecov
- env: ACTION=tox-py3
language: python
python: '3.6'
addons:
postgresql: '9.4'
before_install:
- ./scripts/elasticsearch.sh
install: pip install tox>=3.8.0
before_script: createdb htest
script:
tox -e py36-tests
# Test web application frontend
- env: ACTION=gulp
language: node_js
node_js: 'node'
before_install: npm install gulp-cli
script: gulp test
# Lint frontend code
- env: ACTION=frontend-lint
language: node_js
node_js: 'node'
script:
make frontend-lint
# Lint backend code
- env: ACTION=backend-lint
language: python
python: '3.6'
install: pip install tox>=3.8.0
script:
make lint
# Check the docs build for warnings or errors.
- env: ACTION=check-docs
language: python
python: '3.6'
install: pip install tox>=3.8.0
script:
make checkdocs
cache:
directories:
- node_modules
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
notifications:
slack:
rooms:
- secure: SKPwtfoH32aDop6hLhQdgrUhl58gM6CMBUATMdq0KMmEwCxskPbIArqxGUKxeeiO3c3jBQ+Yuq3b4m8GbR2AJxxelO0DRLNyV1lAjfeJ/QzCc3Taxqo0yel4uAFNg/oCYWH50dv2oAgDP3CHk/tKXmsgDWOjcm6A6k35xst16xI=
on_success: change
on_failure: always