-
Notifications
You must be signed in to change notification settings - Fork 84
/
.travis.yml
61 lines (53 loc) · 1.34 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
language: c
os:
- linux
- osx
env:
- TEST=normal NODE_VERSION=8
- TEST=normal NODE_VERSION=10
- TEST=integration NODE_VERSION=8
- TEST=integration NODE_VERSION=10
before_install:
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION || echo
- if [[ $(npm -v) != 6* ]]; then npm i -g npm@6; fi;
- npm install
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TEST" == "integration" ]]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 5;
fi
- if [[ "$TEST" == "integration" ]]; then
export PATH="$HOME/.meteor:$PATH";
if hash meteor 2>/dev/null;
then
meteor --version;
else
curl https://install.meteor.com/?release=1.8.1 | /bin/sh;
fi;
fi
script:
- if [[ "$TEST" == "normal" ]]; then
npm test;
fi
- if [[ "$TEST" == "integration" ]]; then
npm run prepare-integration-tests;
npm run test-integration;
fi
after_success:
- if [[ "$TEST" == "normal" ]]; then
npm run coverage;
npm run report-coverage;
fi
cache:
yarn: true
directories:
- node_modules
- $HOME/.electron
- $HOME/.npm
- $HOME/.meteor
- tests/.__tmp_int
notifications:
email:
on_success: never
on_failure: change