forked from superdesk/superdesk-aap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
93 lines (79 loc) · 2.35 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
language: python
sudo: required
dist: trusty
services:
- elasticsearch
- redis-server
addons:
apt:
packages:
- unixodbc
- unixodbc-dev
- freetds-dev
- freetds-bin
- tdsodbc
matrix:
include:
- env: ELASTIC2X
python: "3.5"
addons:
apt:
sources:
- elasticsearch-2.x
- mongodb-3.0-precise
packages:
- elasticsearch
- mongodb-org-server
- env: ELASTIC17
python: "3.4"
addons:
apt:
sources:
- elasticsearch-1.7
- mongodb-3.0-precise
packages:
- elasticsearch
- mongodb-org-server
- env: ELASTIC17
python: "3.5"
addons:
apt:
sources:
- elasticsearch-1.7
- mongodb-3.0-precise
packages:
- elasticsearch
- mongodb-org-server
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
before_install:
- nvm install node
- nvm use node
- node --version
- npm install -g npm@latest
- npm install -g grunt-cli
- pip install requests
- 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
- ./scripts/get-chrome-url | wget -N --no-verbose -i -
- unzip chrome-linux.zip
- export CHROME_BIN=`pwd`/chrome-linux/chrome
- $CHROME_BIN --version
install:
- cd server && pip install -r dev-requirements.txt && cd ..
- cd client && npm install --python=python2.7 && cd ..
before_script: >
df -h
&& sudo sed -i 's\enabled: true\enabled: false\' /etc/mongod.conf
&& sudo service mongod restart
script:
- cd client && npm test && cd ..
- cd server && flake8 && cd ..
- cd server && time behave ./features/ --format progress2 --logging-level ERROR && cd ..
- cd server && time nosetests && cd ..
- cd client && grunt build && cd ..
- cd server && python manage.py users:create -u test -p test -e test@localhost --admin && cd ..
after_script:
- rm .npm/*.lock