forked from devCrossNet/universal-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (84 loc) · 2.52 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
dist: trusty
sudo: required
language: node_js
node_js:
- "4"
os:
- linux
env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
matrix:
- SCRIPT=lint
- SCRIPT=build
- SCRIPT=test
- NODE_SCRIPT=tests/e2e_runner.js
- NODE_SCRIPT="tests/e2e_runner.js --nightly"
# - TARGET=mobile SCRIPT=mobile_test
matrix:
fast_finish: true
allow_failures:
- node_js: "5"
- os: osx
- env: NODE_SCRIPT="tests/e2e_runner.js --nightly"
include:
- node_js: "5"
os: linux
env: SCRIPT=test
- node_js: "5"
os: linux
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "6"
os: linux
env: SCRIPT=test
- node_js: "6"
os: linux
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "4"
os: osx
env: SCRIPT=test
- node_js: "4"
os: osx
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "6"
os: osx
env: SCRIPT=test
- node_js: "6"
os: osx
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "4"
os: osx
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
- node_js: "5"
os: osx
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
- node_js: "6"
os: osx
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
- node_js: "4"
os: linux
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
- node_js: "5"
os: linux
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
- node_js: "6"
os: linux
env: UNIVERSAL=true NODE_SCRIPT=tests/e2e_runner.js
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome --force; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir ~/.config && echo "--no-sandbox" > ~/.config/chrome-flags.conf; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "--no-sandbox" > ~/.config/chromium-flags.conf; fi
- if [[ "$TARGET" == "mobile" ]]; then export MOBILE_TEST=true; fi
- npm install -g npm
- npm config set spin false
- npm config set progress false
install:
- npm install --no-optional
script:
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi