diff --git a/.travis.yml b/.travis.yml index 37d6e82..7ab3a4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ env: global: - secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8=" - secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk=" - - secure: "N7NyiiwdsVsKLomdkdeb1lUdSiN7+luks0V4Sh+foJp1RnBqM54B+0pZNiwotMuhTuwv0kjURCooKiyV3eaTleRthutGL9Gt8YiCaCq+biZaZXZnk0E3AQqg/ZzQLeZyreQpcMGsbCnwtywtjvTYB6aJA+ZFzEhq5LRF8tsDn2Y=" + - secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4=" before_script: - npm install -g grunt-cli - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash diff --git a/tests/selenium.js b/tests/selenium.js index 6842ca1..83d8b56 100644 --- a/tests/selenium.js +++ b/tests/selenium.js @@ -146,7 +146,6 @@ compareResults(oldResults, results[browser], browser); } catch(e) {} - console.log(colors.violet, "Writing", browser + ".json"); var date = new Date(); var result = JSON.stringify({ browser: browser, @@ -154,11 +153,11 @@ timestamp: date.toISOString() }); - if (process.env.MONGOLAB_URL) { + if (process.env.MONGOLAB_APIKEY) { var options = { host: "api.mongolab.com", port: 443, - path: process.env.MONGOLAB_URL, + path: "/api/1/databases/html2canvas/collections?" + process.env.MONGOLAB_APIKEY, method: 'POST', headers: { 'Content-Type': 'application/json', @@ -171,10 +170,12 @@ console.log(colors.green, "Results sent for", browser); }); + console.log(result); request.write(result); request.end(); } + console.log(colors.violet, "Writing", browser + ".json"); fs.writeFile(filename, result); }); }