Skip to content
Snippets Groups Projects
Unverified Commit c20807f4 authored by Jordan Harband's avatar Jordan Harband
Browse files

[Tests] fix travis-ci for karma, per https://benlimmer.com/2019/01/14/travis-ci-xvfb/

parent 0d2a295a
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,10 @@ node_js:
- "6"
before_install:
- 'nvm install-latest-npm'
services:
- xvfb
before_script:
- 'if [ -n "${KARMA-}" ]; then export DISPLAY=:99.0; fi'
- 'if [ -n "${KARMA-}" ]; then sh -e /etc/init.d/xvfb start; fi'
- 'if [ -n "${KARMA-}" ]; then sleep 3; fi'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -n "${BUILD-}" ]; then npm run build ; fi'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment