forked from MozillaFoundation/foundation.mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·38 lines (38 loc) · 977 Bytes
/
.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
language: python
services:
- postgresql: 9.6
python:
- '3.6'
before_install:
- nvm install 6.11.2
- nvm use 6.11.2
install:
- pip install -r requirements.txt
- npm install
- python network-api/manage.py collectstatic --no-input
before_script:
- psql -c 'create database network;' -U postgres
script:
- npm test
- flake8 network-api/
- coverage run --source './network-api/networkapi' network-api/manage.py test networkapi
after_success:
- coveralls
env:
global:
- DEBUG=True
- DJANGO_SECRET_KEY=secret
- DATABASE_URL=postgres://postgres@localhost:5432/network
- USE_S3=False
- CORS_WHITELIST="*"
- XSS_PROTECTION=True
- CONTENT_TYPE_NO_SNIFF=True
- SET_HSTS=False
- SSL_REDIRECT=False
- X_FRAME_OPTIONS=DENY
- ALLOWED_HOSTS=localhost
- PULSE_API_DOMAIN=network-pulse-api-production.herokuapp.com
- PULSE_DOMAIN=www.mozillapulse.org
- NETWORK_SITE_URL=https://foundation.mozilla.org
- TARGET_DOMAIN=foundation.mozilla.org
- SHOW_TAKEOVER=false