Skip to content

Commit 8b07cf3

Browse files
committed
Add a travis.yml with local and saucelabs testing.
1 parent 82ffa95 commit 8b07cf3

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@ sudo: required
33
language: node_js
44
os:
55
- linux
6+
67
env:
78
global:
89
- DBUS_SESSION_BUS_ADDRESS=/dev/null
910
- DISPLAY=:99.0
1011
- CHROME_BIN=chromium-browser
12+
- SAUCE_ACCESS_KEY=72e4f85f-4e6b-4971-b8c5-f6707308f63e
13+
- SAUCE_USERNAME="mgiambalvo"
14+
- SAUCE_CONNECT_VERSION="4.4.0"
15+
matrix:
16+
- CI_MODE=local
17+
- CI_MODE=saucelabs
18+
1119
cache:
1220
directories:
1321
- tour-of-heroes/node_modules
14-
before_script:
15-
- sh -e /etc/init.d/xvfb start
22+
1623
install:
1724
- cd tour-of-heroes
1825
- npm install
26+
27+
before_script:
28+
- ./scripts/travis_setup.sh
29+
1930
script:
2031
- npm run lint
2132
- npm run test -- --watch=false
22-
- npm run travis
33+
- npm run travis

0 commit comments

Comments
 (0)