fix chrome addon config for Travis
This commit is contained in:
parent
8688f2fc80
commit
95388ad451
17
.travis.yml
17
.travis.yml
@ -1,4 +1,3 @@
|
|||||||
sudo: required
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
@ -8,22 +7,18 @@ env: # a separate build will start for each env
|
|||||||
- TEST_DIR=app
|
- TEST_DIR=app
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
chrome: stable
|
||||||
sources:
|
|
||||||
- google-chrome
|
|
||||||
packages:
|
|
||||||
- google-chrome-stable
|
|
||||||
- google-chrome-beta
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export CHROME_BIN=chromium-browser
|
|
||||||
- export DISPLAY=:99.0
|
|
||||||
- sh -e /etc/init.d/xvfb start
|
|
||||||
- cd $TEST_DIR # switch to the directory we're testing
|
- cd $TEST_DIR # switch to the directory we're testing
|
||||||
# npm install happens here
|
# npm install happens here
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export DISPLAY=:99.0
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run test-ci
|
- npm run test-ci
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- ./node_modules/.bin/codecov # Send coverage
|
- ./node_modules/.bin/codecov # Send coverage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user