Skip to content

Commit c0abaf9

Browse files
committed
added travis
1 parent 09db7ae commit c0abaf9

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- "4.3"
4+
- "4.0"
5+
- "0.12"
6+
- "0.10"
7+
8+
before_install:
9+
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19BQ0NFU1NfS0VZPUh5VmZydXJvb3dYb041eGhLZEs2Cg==`
10+

local_globals.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var browserstack = require('browserstack-local');
22
var bs_local;
33

44
module.exports = {
5-
before : function(done) {
5+
beforeEach : function(browser, done) {
66
console.log("Connecting local");
77
bs_local = new browserstack.Local();
88
bs_local.start({'key': browser.options.desiredCapabilities['browserstack.key'] }, function(error) {
@@ -13,7 +13,7 @@ module.exports = {
1313
});
1414
},
1515

16-
after : function(done) {
16+
afterEach : function(browser, done) {
1717
bs_local.stop(done);
1818
}
1919
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"readme": "Nightwatch Integration with [BrowserStack](https://www.browserstack.com)",
55
"description": "Selenium examples for Nightwatch and BrowserStack Automate",
66
"scripts": {
7-
"test": "./node_modules/.bin/nightwatch",
7+
"test": "npm run single && npm run local && npm run parallel",
88
"single": "./node_modules/.bin/nightwatch",
99
"local": "./node_modules/.bin/nightwatch -c nightwatch_local.conf.js",
1010
"parallel": "./node_modules/.bin/nightwatch -e chrome,firefox,safari,ie"

0 commit comments

Comments
 (0)