forked from superdesk/superdesk-planning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (87 loc) · 2.22 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: python
python: 3.6
dist: bionic
services:
- docker
addons:
chrome: stable
cache:
pip: true
npm: true
directories:
- ~/.npm
- ~/.cache
before_install:
- |
if [ "$INSTALL_NODEJS" == "true" ]; then
nvm install lts/*
fi
- |
if [ "$INSTALL_NODE_MODULES" == "true" ]; then
npm install
fi
- |
if [ "$INSTALL_PY_MODULES" == "true" ]; then
cd server
pip install -r requirements.txt
cd ..
fi
- |
if [ "$RUN_SERVICES" == "true" ]; then
docker-compose -f .travis-docker-compose.yml up -d
sleep 30
fi
- |
if [ "$E2E" == "true" ]; then
cd e2e/server
pip install -r requirements.txt
cd ..
fi
- |
if [ "$E2E" == "true" ]; then
npm install
fi
- |
if [ "$E2E" == "true" ]; then
npm run build
fi
- |
if [ "$E2E" == "true" ]; then
cd server
honcho start &
cd ..
fi
jobs:
include:
- name: "server"
env:
- INSTALL_NODEJS=false
- INSTALL_NODE_MODULES=false
- INSTALL_PY_MODULES=true
- RUN_SERVICES=true
script: cd server && flake8 && nosetests --logging-level=ERROR && behave --format progress2 --logging-level=ERROR
- name: "client"
env:
- INSTALL_NODEJS=true
- INSTALL_NODE_MODULES=true
- INSTALL_PY_MODULES=false
- RUN_SERVICES=false
script: npm run test
- name: "e2e vol. 1 (events)"
env:
- INSTALL_NODEJS=true
- INSTALL_NODE_MODULES=true
- INSTALL_PY_MODULES=false
- RUN_SERVICES=true
- E2E=true
- TZ=Australia/Sydney
script: npm run cypress-ci -- --spec "cypress/integration/events/*.spec.js"
- name: "e2e vol. 2 (non-events)"
env:
- INSTALL_NODEJS=true
- INSTALL_NODE_MODULES=true
- INSTALL_PY_MODULES=false
- RUN_SERVICES=true
- E2E=true
- TZ=Australia/Sydney
script: npm run cypress-ci -- --spec "cypress/integration/!(events)/*.spec.js"