Created
January 23, 2013 12:41
-
-
Save ebi/4605115 to your computer and use it in GitHub Desktop.
Use different users on travis for saucelabs
This file contains hidden or 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
if [ "$TRAVIS" = "true" ]; then | |
echo "Configuring saucelabs..." | |
case "${TRAVIS_BUILD_NUMBER:(-1):1}" in | |
"1") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp1,secret" | |
echo "Using travis-digicomp1" | |
;; | |
"2") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp2,secret" | |
echo "Using travis-digicomp2" | |
;; | |
"3") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp3,secret" | |
echo "Using travis-digicomp3" | |
;; | |
"4") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp4,secret" | |
echo "Using travis-digicomp4" | |
;; | |
"5") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp5,secret" | |
echo "Using travis-digicomp5" | |
;; | |
"6") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp6,secret" | |
echo "Using travis-digicomp6" | |
;; | |
"7") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp7,secret" | |
echo "Using travis-digicomp7" | |
;; | |
"8") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp8,secret" | |
echo "Using travis-digicomp8" | |
;; | |
"9") | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp9,secret" | |
echo "Using travis-digicomp9" | |
;; | |
*) | |
TRAVIS_SAUCE_CREDENTIALS="travis-digicomp0,secret" | |
echo "Using travis-digicomp0" | |
;; | |
esac | |
echo $TRAVIS_SAUCE_CREDENTIALS >> .sauce_config | |
echo "done" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment