-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
51 lines (41 loc) · 1.84 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
language: python
python:
- "2.7"
# - "3.3"
sudo: false
env:
global:
# Encrypted SauceLabs username and access key. See
# http://about.travis-ci.org/docs/user/addons/#Sauce-Connect
- secure: "Kt9OpZv934sRj0K9KP3m82ecn5/eQBWgeI5CWqIrcykjn6cTuY/KI4IMF2I8\nilZHVMDj/lx82teB9X8zHUlWige4aZJ0b0L1FtoMgf/lprKwh2uFt6olnwvU\nEPrF9U2rMNvc+UTDywzs+4dplE2zHCuIx8J111aSa1CAHQxdIeY="
- secure: "ZmrIM5bgoouu289OvC1E4t3vSnOVuR/UiRRoNAaeieTJAaW4y5BypyAdO7FZ\nMvJkuhsoVNld4IxfN7ta6XYV0VBnia2+y5RN1CppoTII9WmdjKlxIgTeNeOR\nzanlmGx1NZqMto0dG1xToeOVbDlh4fh44HwZDpMAU/bgKHmRNQw="
addons:
sauce_connect: true
install:
# Django test requirements
- pip install -r requirements.txt --allow-all-external --process-dependency-links --allow-unverified=pymeta --allow-unverified=pybars
- pip install coverage selenium
- cp src/planbox/local_settings.py.template src/planbox/local_settings.py
- "echo \"DATABASES = {'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'planbox', 'USER': 'postgres', 'PASSWORD': '', 'HOST': 'localhost'}}\" >> src/planbox/local_settings.py"
# JavaScript test requirements
- nvm install 0.10
- npm install -g grunt-cli
- npm install -g bower
- npm install
- bower install
before_script:
- psql -c 'create database planbox;' -U postgres
- psql -d planbox -c 'create extension postgis;' -U postgres
- python src/manage.py migrate --noinput
- gunicorn --chdir src planbox.wsgi:application --bind 0.0.0.0:80 --workers 4 --daemon
script:
# Run tests and generate coverage statistics for Django
- python src/manage.py test --with-coverage --cover-package=custom_domains --cover-package=planbox --cover-package=planbox_data --cover-package=planbox_ui
# Run tests for JavaScript
- grunt test
notifications:
email:
recipients:
on_success: change
on_failure: always