forked from kartoza/howamidoing-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (35 loc) · 820 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
39
40
41
42
43
44
45
language: python
services:
- postgresql
env:
global:
- ON_TRAVIS=true
- DJANGO_DEBUG=True
- DJANGO_SECRET_KEY='tT\xd7\xb06\xf7\x9b\xff\x0fZL\xca\xca\x11\xefM\xacr\xfb\xdf\xca\x9b'
- DEFAULT_DB_URL='postgis://postgres:@localhost:5432/test_db'
sudo: false
dist: bionic
python:
- '3.6'
addons:
postgresql: 10
apt:
packages:
- postgresql-10-postgis-2.5
install:
- pip install codecov
- pip install -r requirements.txt
before_script:
- psql -c 'create database test_db;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_db
script:
- cd deployment
- make flake8
- cd ../
- python manage.py migrate
- python manage.py collectstatic --noinput --verbosity 0
- coverage run manage.py test
after_success:
- codecov
email:
- zakki@kartoza.com