mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add travis env parameters to webdriver tests
This commit is contained in:
parent
08373f0bd4
commit
ad1f0d418c
@ -8,5 +8,5 @@ env:
|
||||
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
|
||||
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
||||
- curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash
|
||||
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
||||
- npm install -g grunt-cli
|
||||
|
@ -29,7 +29,7 @@
|
||||
"base64-arraybuffer": ">= 0.1.0",
|
||||
"png-js": ">= 0.1.1",
|
||||
"baconjs": "0.7.11",
|
||||
"wd": "~0.2.7",
|
||||
"wd": "0.2.21",
|
||||
"grunt-contrib-connect": "0.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -125,6 +125,9 @@
|
||||
function webdriverStream(test) {
|
||||
var browser = wd.remote("localhost", 4445, process.env.SAUCE_USERNAME, process.env.SAUCE_ACCESS_KEY);
|
||||
var browserStream = new Bacon.Bus();
|
||||
test.capabilities["tunnel-identifier"] = process.env.TRAVIS_JOB_NUMBER;
|
||||
test.capabilities["name"] = process.env.TRAVIS_BUILD_NUMBER;
|
||||
|
||||
var resultStream = Bacon.fromNodeCallback(browser, "init", test.capabilities)
|
||||
.flatMap(Bacon.fromNodeCallback(browser, "setImplicitWaitTimeout", 15000)
|
||||
.flatMap(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user