forked from okfn-brasil/serenata-de-amor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 823 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
sudo: false
dist: trusty
language: python
python: 3.6
cache: pip
addons:
postgresql: "9.6"
services:
- postgresql
env:
global:
- AMAZON_BUCKET=serenata-de-amor-data
- AMAZON_REGION=sa-east-1
- DATABASE_URL=postgres://postgres@localhost/jarbas
- CACHE_BACKEND=django.core.cache.backends.dummy.DummyCache
install:
- cp contrib/.env.sample .env
- python -m pip install -U pip
- psql -U postgres -c 'create database "jarbas";'
- python -m pip install -r requirements-dev.txt coveralls
- python -m pip install -r rosie/requirements.txt
before_script:
- python manage.py migrate
- python manage.py collectstatic --no-input
script:
- coverage run manage.py test
- cd rosie
- coverage run rosie.py test
- python rosie.py run federal_senate
- cd ..
after_success:
- coveralls