forked from dbca-wa/parkstay_bs_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·38 lines (38 loc) · 1.03 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
sudo: false
language: python
cache: pip
python:
- "3.8"
addons:
postgresql: "9.6"
services:
- postgresql
branches:
only:
- master
- parkstay
- parkstay_rebase
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
- DEBUG=True
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.py migrate --noinput
script:
- COVERAGE_FILE=.coverage_ledger coverage run --source="." manage.py test --noinput ledger
- COVERAGE_FILE=.coverage_ps coverage run --source="." manage.py test --noinput parkstay
- coverage combine .coverage_ledger .coverage_ps
after_success:
- coveralls