-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
62 lines (49 loc) · 1.17 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
# 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.6.5'
- '3.7.3'
node_js:
- "10"
services:
- docker
addons:
apt:
packages:
- libgdal-dev
cache:
pip: true
directories:
- node_modules # NPM packages
services:
- docker
env:
global:
- PGDATABASE=postgres
- PGHOST=localhost
- PGUSER=postgres
- PGPASS=''
- PGPORT=5432
- DATABASE_URL=postgis://${PGUSER}:${PGPASS}@${PGHOST}:${PGPORT}/${PGDATABASE}
- POSTGRES_IMAGE=mdillon/postgis:11
before_install:
- sudo service postgresql stop
- docker run --rm --name pg-docker -d -p ${PGPORT}:5432 --tmpfs /var/lib/postgresql/data:rw ${POSTGRES_IMAGE}
- docker ps
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install -r requirements/development.txt
script:
- flake8
- pytest --cov -v --tb=native
- ansible-playbook -i provisioner/hosts provisioner/site.yml --syntax-check
after_script:
- pip install codecov
- codecov
notifications:
email:
on_success: change # [always|never|change]
on_failure: always # [always|never|change]