From eadca92e98b2d933e6a25b9d11280e118fda0d3b Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Wed, 20 Apr 2016 20:20:29 +0200 Subject: [PATCH] don't repeat travis calling npm install but do use https for https urls --- .travis.yml | 1 - TestSelenium.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e9021b45b..bc9ee71df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ node_js: before_script: - npm run-script lint - cp config.js.dist config.js - - npm install - npm install bower - ./node_modules/bower/bin/bower install - node ./server.js & diff --git a/TestSelenium.js b/TestSelenium.js index cac4ffe66..87566622f 100644 --- a/TestSelenium.js +++ b/TestSelenium.js @@ -1,6 +1,6 @@ /* global process */ var WebDriver = require("selenium-webdriver"); -var Http = require("http"); +var Https = require("https"); var driver; if (process.env.SAUCE_USERNAME !== undefined) { @@ -18,7 +18,7 @@ if (process.env.SAUCE_USERNAME !== undefined) { } var logSauceLink = function (cb) { - Http.request("https://saucelabs.com/rest/v1.1/" + process.env.SAUCE_USERNAME + + Https.request("https://saucelabs.com/rest/v1.1/" + process.env.SAUCE_USERNAME + "/jobs?auto_only=true&full=true&limit=50&subaccounts=true", function (resp) { var str = ''; resp.on('data', function (chunk) { str += chunk; });