forked from superdesk/superdesk-client-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.43 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
language: python
python: 3.4
sudo: false
services:
- mongodb
- elasticsearch
- redis-server
addons:
apt:
sources:
- mongodb-3.0-precise
- elasticsearch-1.7
packages:
- mongodb-org-server
- elasticsearch
cache:
directories:
- $HOME/.cache/bower
- $HOME/.cache/pip
- $HOME/.npm
before_install:
- npm config set loglevel warn
- npm install -g bower grunt-cli
- export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x24
- wget -N --no-verbose 'https://storage.googleapis.com/chromium-browser-continuous/Linux_x64/353893/chrome-linux.zip' && unzip chrome-linux.zip &&
export CHROME_BIN=`pwd`/chrome-linux/chrome && $CHROME_BIN --version ;
install:
- npm install
- bower install --quiet
- cd test-server && pip install -q -r requirements.txt && cd ..
- ./node_modules/.bin/webdriver-manager update
script:
- grunt ci:travis
- grunt build ;
cd dist ;
while [ ! -f index.html ]; do sleep .5; done ;
(nohup python -m http.server 9000 & );
cd .. ;
- cd test-server ;
nohup python manage.py ;
(nohup honcho start & ) ;
sleep 5 ;
cd ..;
- ./node_modules/protractor/bin/protractor protractor-conf.js --stackTrace --verbose
after_script:
- killall -9 python