-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy path.travis.yml
38 lines (34 loc) · 886 Bytes
/
.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
language: python
dist: bionic
python:
- "3.6"
sudo: required
global:
- TEST_POSTGRES=/usr/lib/postgresql/10/bin/postgres
- TEST_INITDB=/usr/lib/postgresql/10/bin/initdb
# command to install dependencies
install:
- sudo rm -rf /var/lib/postgresql
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq postgresql-10 postgresql-contrib-10 postgis
- pip install coveralls
- "pip install --upgrade -r requirements.txt"
- "pip install --upgrade -r optional-requirements.txt"
- pip install -e .
# command to run tests
script:
- coverage run --source=gengine gengine/app/tests/runner.py
after_success:
coveralls
# deploy to pypi
deploy:
provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
on:
tags: true
notifications:
email:
recipients:
- $ADMIN_EMAIL
on_success: always # default: change
on_failure: always # default: always