chore(): update sauce environment variables

This commit is contained in:
Andrew Joslin
2014-05-29 21:12:58 -06:00
parent f2d63a50cb
commit c041461b21
4 changed files with 7 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ module.exports = function(gulp, argv) {
require('sauce-connect-launcher')({
username: process.env.SAUCE_USER,
accessKey: process.env.SAUCE_KEY,
tunnelIdentifier: process.env.TRAVIS_BUILD_NUMBER
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID
}, function(err, instance) {
if (err) return done('Failed to launch sauce connect!');
sauceInstance = instance;

View File

@@ -8,7 +8,7 @@ module.exports = _.assign({}, shared, {
username: process.env.SAUCE_USER,
accessKey: process.env.SAUCE_KEY,
startConnect: false,
tunnelIdentifier: process.env.TRAVIS_BUILD_NUMBER
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID || 0
},
//Saucelabs mobile emulation (esp android emulator)
//can be really slow sometimes, we need to give it time to connectk

View File

@@ -8,8 +8,8 @@ exports.config = _.merge({}, config, {
sauceKey: process.env.SAUCE_KEY,
capabilities: {
build: process.env.TRAVIS_BUILD_NUMBER,
'tunnel-identifier': process.env.TRAVIS_BUILD_NUMBER,
build: process.env.SAUCE_BUILD_ID || 1,
'tunnel-identifier': process.env.SAUCE_TUNNEL_ID || 0,
name: 'Ionic!',
browserName: 'chrome'
}

View File

@@ -13,7 +13,9 @@ function init {
function run {
cd ../..
SNAPSHOT_TEST_ID=$(git rev-parse HEAD)
export SNAPSHOT_TEST_ID=$(git rev-parse HEAD)
export SAUCE_TUNNEL_ID=$CIRCLE_BUILD_DUM
export SAUCE_BUILD_ID=$CIRCLE_SHA1
gulp demos --demo-version=nightly