-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (29 loc) · 1021 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
language: python
python:
- "3.5"
env:
MSCMC_SERVER=https://mscmc-staging.cmc.pr.gov.br
DATABASE_TEST_URL=sqlite:///votacao-test.db
DATABASE_URL=sqlite:///votacao.db
before_install:
- export DJANGO_SETTINGS_MODULE=config.settings.travis
- export DATABASE_URL=sqlite:///votacao.db
- sudo apt-get install -y libenchant-dev
- sudo apt-get install -y libenchant1c2a
# comando para instalar dependencias
install:
- pip install -r requirements.txt
- pip install codecov
before_script:
#- python manage.py makemigrations autentica core --settings=config.settings.travis
- python manage.py makemigrations autentica votacao --settings=config.settings.travis
- python manage.py migrate --settings=config.settings.travis
#before_script:
# - psql -c 'create database mscmctest;' -U postgres
# - python manage.py makemigrations api
# - python manage.py migrate api
# comando para rodas os testes
script:
- coverage run manage.py test --settings=config.settings.travis
after_success:
codecov