-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
executable file
·39 lines (38 loc) · 1.08 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
sudo: false
language: python
cache: pip
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.6"
services:
- postgresql
branches:
only:
- master
- commercialoperator
env:
global:
- SECRET_KEY=SecretKeyForTravis
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- PRODUCTION_EMAIL=False
- EMAIL_INSTANCE="TEST"
- NON_PROD_EMAIL="[email protected]"
- BPAY_ALLOWED=True
- EMAIL_FROM="[email protected]"
sudo: true
install:
- sudo apt-get install postgresql-9.6-postgis-2.4 -y -q
- pip install pip --upgrade
- pip install -r requirements.txt
before_script:
- touch .env
- psql -c 'create database travis_ci_test;' -U postgres
- python manage_co.py migrate --noinput
script:
- COVERAGE_FILE=.coverage_ledger coverage run --source="." manage_co.py test --noinput ledger
- COVERAGE_FILE=.coverage_co coverage run --source="." manage_co.py test --noinput commercialoperator
- coverage combine .coverage_ledger .coverage_co
after_success:
- coveralls