Ensure only 4 sauce runs at once.

This commit is contained in:
John-David Dalton
2013-11-04 21:38:35 -08:00
parent d72ade9c70
commit e2f05e137f

View File

@@ -5,7 +5,7 @@ node_js:
- "0.10"
env:
global:
- BIN="node" BUILD=false BUILD_PARAM=false COMPAT=false MAKE=false OPTION="" SAUCELABS=false
- BIN="node" BUILD=false COMPAT=false MAKE=false OPTION="" SAUCE_LABS=false
- SAUCE_USERNAME="jdalton"
- secure: "woILQltl1pI3DgadZ5NrcqntdPvnRmQBwIVNZL91Ht5d9snIhgyAixI6xNAS8F8BzD9RzqzVPHay5sHfn+GhNaojcaiHs1nXAbdyclevMyfP+3MQ1HGfMSU0bv1GdT35LJ+C0u4Y3SuuZSbBlNEeLXRPMngPZahf4xL8RsZz/is="
matrix:
@@ -37,21 +37,13 @@ matrix:
- node_js: "0.10"
env: BIN="ringo" BUILD="legacy"
- node_js: "0.8"
env: SAUCELABS=true BUILD="compat" BUILD_PARAM="lodash-$BUILD"
env: SAUCE_LABS=true BUILD="compat"
- node_js: "0.8"
env: SAUCELABS=true BUILD="modern" BUILD_PARAM="lodash-$BUILD"
env: SAUCE_LABS=true BUILD="modern"
- node_js: "0.8"
env: SAUCELABS=true BUILD="legacy" BUILD_PARAM="lodash-$BUILD"
env: SAUCE_LABS=true BUILD="legacy"
- node_js: "0.8"
env: SAUCELABS=true BUILD="mobile" BUILD_PARAM="lodash-$BUILD"
- node_js: "0.8"
env: SAUCELABS=true BUILD="compat" BUILD_PARAM="../dist/lodash.$BUILD.js"
- node_js: "0.8"
env: SAUCELABS=true BUILD="modern" BUILD_PARAM="../dist/lodash.$BUILD.js"
- node_js: "0.8"
env: SAUCELABS=true BUILD="legacy" BUILD_PARAM="../dist/lodash.$BUILD.js"
- node_js: "0.8"
env: SAUCELABS=true BUILD="mobile" BUILD_PARAM="../dist/lodash.$BUILD.js"
env: SAUCE_LABS=true BUILD="mobile"
git:
depth: 10
branches:
@@ -60,7 +52,7 @@ branches:
before_install:
- "[ $BUILD != false ] && [ $BUILD != 'compat' ] && MAKE=true || true"
- "[ $BUILD != 'mobile' ] && [ $BUILD != 'modern' ] && COMPAT=true || true"
- "[ $SAUCELABS != false ] && npm i ecstatic@\"~0.4.0\" request@\"~2.27.0\" sauce-tunnel@\"~1.1.0\" || true"
- "[ $SAUCE_LABS != false ] && npm i ecstatic@\"~0.4.0\" request@\"~2.27.0\" sauce-tunnel@\"~1.1.0\" || true"
- "[ $BIN == 'istanbul' ] && npm i -g istanbul@\"~0.1.0\" || true"
- "[ $BIN == 'narwhal' ] && wget https://github.com/280north/narwhal/archive/v0.3.2.zip && sudo unzip v0.3.2 -d /opt/ && rm v0.3.2.zip || true"
- "[ $BIN == 'narwhal' ] && sudo ln -s /opt/narwhal-0.3.2/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal || true"
@@ -73,10 +65,14 @@ before_install:
- "[ $MAKE != false ] && node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js || true"
script:
- "[ $BIN == 'istanbul' ] && $BIN cover ./test/test.js || true"
- "([ $SAUCELABS != false ] || [ $BUILD == false ]) && true || cd ./test"
- "([ $SAUCELABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
- "([ $SAUCELABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
- "[ $SAUCELABS == false ] && true || node ./test/saucelabs.js \"test/index.html?build=$BUILD_PARAM\""
- "[ $SAUCELABS == false ] && true || node ./test/saucelabs.js \"test/backbone.html?build=$BUILD_PARAM\""
- "[ $SAUCELABS == false ] && true || node ./test/saucelabs.js \"test/underscore.html?build=$BUILD_PARAM\""
- "([ $SAUCELABS == false ] || [ $COMPAT == false ]) && true || node ./test/saucelabs.js \"test/index.html?build=$BUILD_PARAM&compat=7\""
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || cd ./test"
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/index.html?build=lodash-$BUILD\""
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/index.html?build=../dist/lodash.$BUILD.js\""
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/backbone.html?build=lodash-$BUILD\""
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/backbone.html?build=../dist/lodash.$BUILD.js\""
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/underscore.html?build=lodash-$BUILD\""
- "[ $SAUCE_LABS == false ] && true || node ./test/saucelabs.js \"test/underscore.html?build=../dist/lodash.$BUILD.js\""
- "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) && true || node ./test/saucelabs.js \"test/index.html?build=lodash-$BUILD&compat=7\""
- "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) && true || node ./test/saucelabs.js \"test/index.html?build=../dist/lodash.$BUILD.js&compat=7\""