-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
28 lines (28 loc) · 1.1 KB
/
circle.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
machine:
python:
version: 2.7.5
environment:
DJANGO_SETTINGS_MODULE: neatpix.settings.testing
dependencies:
pre:
- pip install --upgrade pip
- pip install -r requirements.txt
- npm install bower
test:
override:
- bower install
- python neatpix/manage.py collectstatic --noinput --settings=neatpix.settings.testing
- coverage run --source=webapp neatpix/manage.py test neatpix --settings=neatpix.settings.testing
post:
- coveralls
deployment:
staging:
branch: develop
commands:
- git fetch origin --unshallow
- git push -f [email protected]:neatpix.git $CIRCLE_SHA1:refs/heads/master
- heroku run python neatpix/manage.py collectstatic --noinput --settings=neatpix.settings.staging --app neatpix
- heroku run python neatpix/manage.py makemigrations --settings=neatpix.settings.staging --app neatpix
- heroku run python neatpix/manage.py migrate auth --settings=neatpix.settings.staging --app neatpix
- heroku run python neatpix/manage.py migrate --settings=neatpix.settings.staging --app neatpix
- heroku ps:scale web=1 --app neatpix