Skip to content

Commit 5a4412c

Browse files
committed
chore: switch to headless Chrome/Firefox and simplify/improve Travis config
1 parent 35b7ff2 commit 5a4412c

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.travis.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
sudo: required
21
dist: trusty
32

43
language: node_js
54
node_js:
65
- 10
76

8-
before_script:
9-
- export DISPLAY=:99.0
10-
- 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
7+
addons:
8+
chrome: stable
9+
firefox: latest
10+
11+
cache:
12+
directories:
13+
- "$HOME/.npm"
1514

1615
script:
1716
- scripts/private/test-all.sh

scripts/private/test-all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ do
3838
git checkout -f $COMMIT~$((14 - $i))
3939
fi
4040

41-
node_modules/.bin/karma start karma.conf.js --single-run
42-
node_modules/.bin/protractor e2e-tests/protractor.conf.js --directConnect
41+
node_modules/.bin/karma start karma.conf.js --single-run --browsers ChromeHeadless,FirefoxHeadless
42+
node_modules/.bin/protractor e2e-tests/protractor.conf.js --directConnect --capabilities.chromeOptions.args headless
4343
done

0 commit comments

Comments
 (0)