From 6066d3adf8e97f11cd9257cc68be563df72982ae Mon Sep 17 00:00:00 2001 From: "Isaac A. Murchie" Date: Mon, 6 Jan 2020 10:53:21 -0500 Subject: [PATCH] build: use built-in sauce connect functionality (#611) * build: move sc environment variables into travis.yml * build: use sc addon --- .travis.yml | 7 ++++++- gulpfile.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 40ea3092..0363f584 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,11 @@ language: node_js node_js: - "10" +addons: + sauce_connect: + username: "wdjs" + jwt: + secure: "Rd/8FnJNEwa5GArBrMyH4pQwFY4m7uFoG9Napnk5geitFnlYvN7xolxPw4mwhYDjqk9RjRRfqJA1OZVFGg8wR+7pDIrriKeQKc+nws5n8aUlWbc++qitIx5gnM/InXZwPh7ALOfUYCZVmbWbpg7DLwP2qsjuCVgB50UuvSHG7ZI=" env: global: - TIMEOUT=600000 @@ -21,4 +26,4 @@ env: # - CONFIG=ipad # - CONFIG=android_phone script: - - npm run lint && npx gulp travis --config $CONFIG --sauce + - npm run lint && npx gulp travis --config $CONFIG --sauce --nosc diff --git a/gulpfile.js b/gulpfile.js index 8450d10c..504f499b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -306,7 +306,7 @@ gulp.task('sc:stop', function (done) { }); gulp.task('pre:midway', function() { - var seq = args.sauce && !args['nosc'] + var seq = args.sauce && !args.nosc ? ['sc:start', 'proxy:start'] : ['proxy:start']; return runSequence(seq);