ccdb-api/.travis.yml
Matthew Dillon 983ce6f021 TST: Travis/Coveralls setup (#10)
- add travis.yml
- linting
- coveralls
- readme
2016-08-28 16:34:57 -07:00

18 lines
513 B
YAML

language: python
python:
- 3.5
services:
- postgresql
before_install:
- psql -c 'CREATE DATABASE ccdbdjango;' -U postgres
- export DJANGO_SETTINGS_MODULE=config.settings.local
- export DATABASE_URL=postgres://postgres@localhost/ccdbdjango
install:
- pip install -r requirements/local.txt
- pip install coveralls
script:
- python manage.py migrate
- flake8 --exclude=migrations,settings,manage.py,misc/existing.py
- coverage run --rcfile .coveragerc manage.py test
after_success:
- coveralls