-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (29 loc) · 1.03 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: python
python:
- "2.7"
# setup environment
env:
- DJANGO_VERSION=1.11.1
- DJANGO_SETTINGS_MODULE='profiles_project.settings'
# install dependencies
install:
- pip install -r requirements.txt
# run test scripts
script:
- python src/profiles_project/manage.py collectstatic --noinput --settings=profiles_project.settings
- coverage run --source=. src/profiles_project/manage.py test src/profiles_project/profiles_api --noinput --settings=profiles_project.settings
# run coveralls after successful tests
after_success:
- coveralls
# Deploy to staging or production with proper settings
buildpack:
- node
- python
app: dothebucket
on:
all_branches: true
run:
- "export DJANGO_SETTINGS_MODULE=src.profiles_project.profiles_project.settings"
- "python src/profiles_project/manage.py collectstatic --noinput --settings=profiles_project.settings"
- "python src/profiles_project/manage.py makemigrations --settings=profiles_project.settings"
- "python src/profiles_project/manage.py migrate --settings=profiles_project.settings"