forked from MozillaFoundation/foundation.mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (46 loc) · 1.2 KB
/
appveyor.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
58
version: "{build}"
branches:
only:
- master
services:
- postgresql
build: false
environment:
nodejs_version: "6"
DEBUG: True
DJANGO_SECRET_KEY: secret
DATABASE_URL: postgres://postgres:Password12!@localhost:5432/networkapi
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
matrix:
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.1"
PYTHON_ARCH: "32"
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %%PYTHON_ARCH"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
- "virtualenv network -p %PYTHON%/python.exe"
- "./network/Scripts/activate"
- "pip install -r requirements.txt"
- "python network-api/manage.py collectstatic --no-input"
test_script:
- node --version
- npm --version
- npm test
- "./network/Scripts/activate"
- "flake8 network-api/"
- "python network-api/manage.py test"
clone_depth: 1