-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (45 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
46
47
48
49
50
51
52
53
54
55
56
57
# For more information about the configurations used in this file, please
# see the Travis CI documentation: https://docs.travis-ci.com
language: python
dist: xenial
python:
- '3.7.3'
node_js:
- "10"
addons:
postgresql: "11.2"
cache:
pip: true
directories:
- node_modules # NPM packages
services:
- postgresql
env:
global:
- PGDATABASE=postgres
- PGHOST=localhost
- PGUSER=postgres
- PGPASS=''
- PGPORT=5433
- DATABASE_URL=postgres://${PGUSER}:${PGPASS}@${PGHOST}:${PGPORT}/${PGDATABASE}
- POSTGRES_IMAGE=postgres:11
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql restart 11
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install -r requirements/development.txt
- npm install
script:
- flake8
- npm run build
- pytest --cov -v --tb=native
- ansible-playbook -i provisioner/hosts provisioner/site.yml --syntax-check
notifications:
email:
on_success: change # [always|never|change]
on_failure: always # [always|never|change]