-
Nicolas Joyard a rédigéNicolas Joyard a rédigé
.travis.yml 1,03 Kio
sudo: false
language: python
env:
- DJANGO="django>1.8,<1.9" DJANGO_SETTINGS_MODULE=representatives_votes.tests.settings
python:
- "2.7"
before_install:
- pip install codecov
install:
- pip install $DJANGO pep8 flake8 pytest-django pytest-cov codecov django-responsediff mock
- pip install https://github.com/political-memory/django-representatives/archive/parltrack.tar.gz#egg=django-representatives
- pip install -e .[api]
script:
- django-admin migrate
- flake8 representatives_votes/ --exclude migrations --ignore E128
- py.test
- cat representatives_votes/contrib/francedata/tests/dossiers_input.json | francedata_import_dossiers
- cat representatives_votes/contrib/francedata/tests/scrutins_input.json | francedata_import_scrutins
- cat representatives_votes/contrib/francedata/tests/votes_input.json | francedata_import_votes
- cat representatives_votes/contrib/parltrack/tests/dossiers_fixture.json | parltrack_import_dossiers
- cat representatives_votes/contrib/parltrack/tests/votes_fixture.json | parltrack_import_votes
after_success:
- codecov