Skip to content

Commit 27f9c1f

Browse files
committed
chore: switch to headless Chrome/Firefox and simplify/improve Travis config
1 parent cc81778 commit 27f9c1f

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
@@ -35,6 +35,6 @@ do
3535
git checkout -f $COMMIT~$((14 - $i))
3636
fi
3737

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

0 commit comments

Comments
 (0)