Skip to content

Commit ad1f0d4

Browse files
committed
Add travis env parameters to webdriver tests
1 parent 08373f0 commit ad1f0d4

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ env:
88
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
99
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
1010
before_script:
11-
- npm install -g grunt-cli
12-
- curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash
11+
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
12+
- npm install -g grunt-cli

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"base64-arraybuffer": ">= 0.1.0",
3030
"png-js": ">= 0.1.1",
3131
"baconjs": "0.7.11",
32-
"wd": "~0.2.7",
32+
"wd": "0.2.21",
3333
"grunt-contrib-connect": "0.7.1"
3434
},
3535
"scripts": {

tests/selenium.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
function webdriverStream(test) {
126126
var browser = wd.remote("localhost", 4445, process.env.SAUCE_USERNAME, process.env.SAUCE_ACCESS_KEY);
127127
var browserStream = new Bacon.Bus();
128+
test.capabilities["tunnel-identifier"] = process.env.TRAVIS_JOB_NUMBER;
129+
test.capabilities["name"] = process.env.TRAVIS_BUILD_NUMBER;
130+
128131
var resultStream = Bacon.fromNodeCallback(browser, "init", test.capabilities)
129132
.flatMap(Bacon.fromNodeCallback(browser, "setImplicitWaitTimeout", 15000)
130133
.flatMap(function() {

0 commit comments

Comments
 (0)