ccdb-api/.travis.yml

24 lines
1.3 KiB
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
deploy:
provider: heroku
app: obscure-caverns-99102
run: "python manage.py migrate"
api_key:
secure: CMnpRf9CWdy5oVHQ6W72udr+1i7aQigkA6FFHV1lMhB1vvFKFMCXHpzuYLXctYOHSV06+RVa3CLjkm+YUy+jaLZWRLcBpMUReh2L+DW/iumI18Ilp6w4RrrcLJhJEc8Ks9F/EkbLVrKn+KmCvfNAR97Lb9piFWkEycQL86G5VWGXt/cRrhbY5/nxIdV09oHC5NLSaVOAclhMQP5ClFBjjGObA7RxF45wc4rejy96OXJ+LZhzbYJqwJ32wJTe9H/OTMcUVBbpoTCUpYUehCDYmcIwz4Vx0IdjZI9a0kF5t7xRR/RJ8UfSbu/M1dltHFLJ6Fqdufz7rnaUZ6qleWRGkMgLpyYSj5BPsKS6s5nLF4ZXosyOnrhqWIHZ9/HFEzRVaYGlPQ5NcxYa6nNCv+lD2IV9pwq4Ynn8oof2NIu7XvnRpS3ZpkfGauVSIFNHyUtBYbPpMNQilygv7N7IzCofRb0B965f7EEZMIEiy076XnjS5IfWgY1x27BkvkTara+s5ymcE6Y6whKlknp5B7opYpz0j7ehau5JLiZc6kGWNL+5bJhd4yxpOYasd03jYsqeOFJjYBhqjDpvCZsNmMiK41wx2EJUrevbDCcsbBEebp3sUoEkTwQmgXpkteYAyGT0z2ko3V7pTP1LC+KYYatsXeiL9wqu+CEi5WAODsCyXUI=