Skip to content

Commit 4079e61

Browse files
committed
chore(travis): simplify and improve config
Includes the following changes: - Run tests on macOS and Windows as well. - Run tests against the current Node.js LTS version (v10.x). - Cache npm cache directory between builds.
1 parent 04bc928 commit 4079e61

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.travis.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
sudo: required
21
dist: trusty
32

43
language: node_js
54
node_js:
6-
- 6
5+
- 10
76

8-
install:
9-
- export DISPLAY=:99.0
7+
addons:
8+
chrome: stable
9+
10+
cache:
11+
directories:
12+
- "$HOME/.npm"
13+
14+
before_install:
15+
- export DISPLAY=":99.0"
1016
- sh -e /etc/init.d/xvfb start
11-
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
12-
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
13-
- sudo apt-get update -q
14-
- sudo apt-get install -q google-chrome-stable
1517

16-
before_script:
18+
install:
1719
- npm install
1820

1921
script:
2022
- npm run test-single-run
21-
- (npm start > /dev/null &) && (npm run protractor)
23+
- (npm start > /dev/null &) && npm run protractor

0 commit comments

Comments
 (0)