forked from superdesk/superdesk-ntb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.37 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.5"
dist: trusty
sudo: required
services:
- mongodb
- redis-server
addons:
apt:
sources:
- mongodb-3.0-precise
- google-chrome
- elasticsearch-2.x
packages:
- mongodb-org-server
- google-chrome-stable
- elasticsearch
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
before_install:
- sudo apt-get purge elasticsearch
- sudo apt-get install -t stable elasticsearch
- nvm install 6.10
- nvm use 6.10
- node --version
- npm install -g npm@3
- 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
- export CHROME_BIN=`which google-chrome` && $CHROME_BIN --version ;
install:
- cd server && pip install -r dev-requirements.txt && cd ..
- cd client && npm install && cd ..
before_script:
- sudo service elasticsearch restart
- sleep 10
script:
- cd client && npm test && cd ..
- cd server && flake8 && cd ..
- cd server && nosetests && cd ..
- cd server && behave ./features/ --format progress2 --logging-level ERROR && cd ..
- cd client && grunt build && cd ..
- cd server && python manage.py users:create -u test -p test -e test@localhost --admin && cd ..