Skip to content

Commit

Permalink
chore(travis): Use xvfb‑run
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Oct 26, 2019
1 parent 739d439 commit b0fd7b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ node_js:
- 6

services:
- xvbf
- xvfb

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

before_script:
# gulpfile uses the Gulp v3 API
- npm install -g [email protected]
- npm install -g gulp-cli

script:
- npm install
- gulp build
- gulp test
- npm run build
- xvfb-run npm run test

deploy:
- provider: s3
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Gfycat js embed",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "gulp build",
"test": "gulp test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b0fd7b5

Please sign in to comment.