forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (69 loc) · 1.81 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
# use Travis container build infrastructure
sudo: false
matrix:
include:
# Python (backend) tests
- env: ACTION=tox
language: python
python: '2.7'
addons:
postgresql: "9.4"
before_install:
- ./scripts/elasticsearch.sh
install: pip install tox
before_script: createdb htest
script: tox
after_success:
tox -e coverage
tox -e codecov
- env: ACTION=tox-py3
language: python
python: '3.6'
addons:
postgresql: '9.4'
before_install:
- ./scripts/elasticsearch.sh
install: pip install tox
before_script: createdb htest
script:
make test-py3
# Test web application frontend
- env: ACTION=gulp
language: node_js
# We currently build production against Alpine v3.4:
#
# https://pkgs.alpinelinux.org/packages?name=nodejs&branch=v3.4
node_js: '6.7'
before_install: npm install gulp-cli
script: gulp test
# Lint frontend code
- env: ACTION=frontend-lint
language: node_js
node_js: '6.7'
script:
gulp lint
# Lint backend code
- env: ACTION=backend-lint
language: python
python: '3.6'
script:
make lint
# Check the docs build for warnings or errors.
- env: ACTION=check-docs
language: python
python: '3.6'
install: pip install tox
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