Skip to content

Commit

Permalink
Travis ci builds (#17)
Browse files Browse the repository at this point in the history
* Initial travis yml and scripts update

Also enabled headless to not setup XVFB on travis

* excluded gecko driver download (since no tests for it yet)

* Using directConnect for tests

* Installing chrome
  • Loading branch information
Xotabu4 authored and potapovDim committed Apr 28, 2018
1 parent 71c9af8 commit 0cbaeb4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "8"
- "9"
sudo: required
addons:
chrome: stable
9 changes: 5 additions & 4 deletions __specs__/integration/chrome/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ const {expect} = require('chai')
const awb = require('../../../awb')
const conf = {
remote: false,
directConnect: false,
directConnect: true,
desiredCapabilities: {
javascriptEnabled: true,
acceptSslCerts: true,
platform: 'ANY',
browserName: 'chrome'
browserName: 'chrome',
chromeOptions: {args: ['--headless']}
},
host: 'localhost',
port: 4444,
// host: 'localhost',
// port: 4444,
timeout: 25000
}

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
},
"scripts": {
"lint": "eslint lib/** --ext .js",
"pretest": "./bin/awb standalone chrome",
"test": "npm run integration-chrome",
"integration-chrome": "mocha --timeout 60000 $(find ./__specs__/integration/chrome -path '*.spec.js')",
"integration-chrome:watch": "mocha --timeout 60000 -w --harmony --trace-deprecation $(find ./__specs__/integration/chrome -path '*.spec.js')",
"integration-firefox": "mocha --timeout 60000 $(find ./__specs__/integration/firefox -path '*.spec.js')",
Expand Down

0 comments on commit 0cbaeb4

Please sign in to comment.