forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (42 loc) · 1.16 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
# use Travis container build infrastructure
sudo: false
matrix:
include:
# Python (backend) tests
- env: ACTION=tox
language: python
python: '2.7'
addons:
postgresql: "9.4"
install: pip install tox
before_script: createdb htest
script: tox
after_success:
tox -e coverage
tox -e codecov
# 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
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