forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up Sauce Labs with Travis
This should not affect the Jenkins build at all. Now, the Travis build uses Chrome on Sauce Labs, which in theory gives us opportunity to use any browser/platform that Sauce Labs offers.
- Loading branch information
Showing
10 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,6 @@ module.exports = function(config) { | |
suite: 'Docs' | ||
} | ||
}); | ||
|
||
config.sauceLabs.testName = 'AngularJS: docs'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,6 @@ module.exports = function(config) { | |
suite: 'E2E' | ||
} | ||
}); | ||
|
||
config.sauceLabs.testName = 'AngularJS: e2e'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ module.exports = function(config) { | |
suite: 'jqLite' | ||
} | ||
}); | ||
|
||
config.sauceLabs.testName = 'AngularJS: jqLite'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ module.exports = function(config) { | |
suite: 'jQuery' | ||
} | ||
}); | ||
|
||
config.sauceLabs.testName = 'AngularJS: jQuery'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ module.exports = function(config) { | |
suite: 'modules' | ||
} | ||
}); | ||
|
||
config.sauceLabs.testName = 'AngularJS: modules'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Wait for Connect to be ready before exiting | ||
while [ ! -f $SAUCE_CONNECT_READY_FILE ]; do | ||
sleep .5 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Setup and start Sauce Connect for your TravisCI build | ||
# This script requires your .travis.yml to include the following two private env variables: | ||
# SAUCE_USERNAME | ||
# SAUCE_ACCESS_KEY | ||
# Follow the steps at https://saucelabs.com/opensource/travis to set that up. | ||
# | ||
# Curl and run this script as part of your .travis.yml before_script section: | ||
# before_script: | ||
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash | ||
|
||
CONNECT_URL="http://saucelabs.com/downloads/Sauce-Connect-latest.zip" | ||
CONNECT_DIR="/tmp/sauce-connect-$RANDOM" | ||
CONNECT_DOWNLOAD="Sauce_Connect.zip" | ||
CONNECT_LOG="$CONNECT_DIR/log" | ||
|
||
# Get Connect and start it | ||
mkdir -p $CONNECT_DIR | ||
cd $CONNECT_DIR | ||
curl $CONNECT_URL > $CONNECT_DOWNLOAD 2> /dev/null | ||
unzip $CONNECT_DOWNLOAD | ||
rm $CONNECT_DOWNLOAD | ||
|
||
|
||
echo "Starting Sauce Connect in the background" | ||
echo "Logging into $CONNECT_LOG" | ||
java -jar Sauce-Connect.jar --readyfile $SAUCE_CONNECT_READY_FILE \ | ||
--tunnel-identifier $TRAVIS_JOB_NUMBER \ | ||
$SAUCE_USERNAME $SAUCE_ACCESS_KEY > $CONNECT_LOG & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters