FIX travis file

This commit is contained in:
salomonelli 2017-10-20 20:43:32 +02:00
parent 605a9b2eac
commit 1be7294468
2 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,15 @@
language: node_js
os:
- linux
node_js:
- "node"
- "8"
before_deploy:
- npm i
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm i --silent
- npm run lint
- npm test
- npm export

View File

@ -16,7 +16,7 @@
"start": "node build/dev-server.js",
"pdf": "node node/app.js",
"preview": "node node/preview.js",
"test": "concurrently \"npm run dev\" \"testcafe chrome test/\" --success first --kill-others --raw",
"test": "concurrently \"npm run dev\" \"testcafe chromium test/\" --success first --kill-others --raw",
"template": "node node/template/template.js",
"export": "concurrently \"npm run dev\" \"npm run pdf\" --success first --kill-others --raw",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"