-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
72 lines (62 loc) · 1.53 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
sudo: false
language: python
python:
- 3.4
env:
global:
- NPM_CONFIG_SPIN=false
- NPM_CONFIG_PYTHON=python2
- DISPLAY=:99.0
matrix:
- MODULE=server
- MODULE=client
matrix:
fast_finish: true
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
cache:
- pip
- npm
- directories:
- $HOME/.cache/pip
- $HOME/.npm
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_install:
- pip install --upgrade pip setuptools wheel
- case ${MODULE} in
server) pip install --upgrade coveralls;;
client) source $HOME/.nvm/nvm.sh &&
nvm install 4.3 &&
nvm use 4.3 &&
npm update -g npm &&
npm install -g codeclimate-test-reporter &&
sh -e /etc/init.d/xvfb start;;
esac
install:
- export GLOBAL_INSTALL=true
- server/package.sh --force install
- case ${MODULE} in
client) client/package.sh --production --force install &&
client/package.sh --force install;;
esac
before_script:
- ./package.sh make_defaults
- ./package.sh upgrade_database
- case ${MODULE} in
client) ./package.sh start & sleep 3;;
esac
script:
- case ${MODULE} in
server) server/package.sh test -f -vv --full-trace;;
client) client/package.sh test;;
esac
after_success:
- case ${MODULE} in
server) (cd server; coveralls --rcfile .coveragerc);;
client) (cd client; find tmp/coverage -name lcov.info -exec cat {} \; | codeclimate-test-reporter);;
esac