-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
34 lines (34 loc) · 1.16 KB
/
.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
language: python
python:
- '2.7'
env:
- DJANGO_SETTINGS_MODULE='bucketlist.settings.testing'
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- npm install bower
script:
- bower install --settings=bucketlist.settings.testing
- python bucketlist/manage.py collectstatic --noinput --settings=bucketlist.settings.testing
- coverage run --source=dashboard,api bucketlist/manage.py test bucketlist --settings=bucketlist.settings.testing -s
after_success:
- coveralls
deploy:
provider: heroku
buildpack:
- node
- python
api_key: '0e293adb-05d5-4d8a-8d5d-e0b9e4fb7633'
app:
develop: thebucketlistapp
master: thebucketlistapp
on:
all_branches: true
run:
- "export DJANGO_SETTINGS_MODULE=bucketlist.settings.staging"
- "python bucketlist/manage.py collectstatic --noinput --settings=bucketlist.settings.staging"
- "python bucketlist/manage.py makemigrations --settings=bucketlist.settings.staging"
- "python bucketlist/manage.py migrate auth --settings=bucketlist.settings.staging"
- "python bucketlist/manage.py migrate --settings=bucketlist.settings.staging"
after_deploy:
- "heroku ps:scale web=1 --app thebucketlistapp"