Skip to content

Commit c20807f

Browse files
committed
[Tests] fix travis-ci for karma, per https://benlimmer.com/2019/01/14/travis-ci-xvfb/
1 parent 0d2a295 commit c20807f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ node_js:
55
- "6"
66
before_install:
77
- 'nvm install-latest-npm'
8+
services:
9+
- xvfb
810
before_script:
911
- 'if [ -n "${KARMA-}" ]; then export DISPLAY=:99.0; fi'
10-
- 'if [ -n "${KARMA-}" ]; then sh -e /etc/init.d/xvfb start; fi'
11-
- 'if [ -n "${KARMA-}" ]; then sleep 3; fi'
1212
script:
1313
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
1414
- 'if [ -n "${BUILD-}" ]; then npm run build ; fi'

0 commit comments

Comments
 (0)