forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (31 loc) · 963 Bytes
/
.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
dist: trusty
sudo: required
language: node_js
env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
matrix:
fast_finish: true
allow_failures:
- node_js: "7"
- env: NODE_SCRIPT="tests/run_e2e.js --nightly --ng4"
include:
- node_js: "6"
os: linux
env: SCRIPT=lint
- node_js: "6"
os: linux
env: SCRIPT=build
- node_js: "6"
os: linux
env: SCRIPT=test
before_install:
- 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
- yarn config set spin false
- yarn config set progress false
script:
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi