forked from superdesk/superdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.12 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
language: python
python: 3.4
sudo: false
services:
- mongodb
- elasticsearch
- redis-server
addons:
apt:
sources:
- mongodb-3.0-precise
packages:
- 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 ..
script:
- cd client && npm test && cd ..
- cd server && flake8 && cd ..
- cd client && grunt build && cd ..
- cd server && python manage.py users:create -u test -p test -e test@localhost --admin && cd ..