Make the coverage run in .travis.yml use the generated modern build.

This commit is contained in:
John-David Dalton
2014-01-16 19:54:33 -08:00
parent c721acc2fa
commit 87bb926fef

View File

@@ -15,7 +15,7 @@ env:
matrix:
include:
- node_js: "0.10"
env: ISTANBUL=true
env: ISTANBUL=true BUILD="modern"
- node_js: "0.10"
env: BIN="phantomjs" BUILD="compat"
- node_js: "0.10"
@@ -68,10 +68,10 @@ before_install:
- "mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../../ ./lodash && cd ../ && npm i . && cd ../../"
- "node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js"
script:
- "[ $ISTANBUL == false ] || (nvm use 0.11 && $BIN --harmony ./node_modules/istanbul/lib/cli.js cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./dist/lodash.js && nvm use 0.10 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage)"
- "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || cd ./test"
- "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
- "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
- "[ $ISTANBUL == false ] || (nvm use 0.11 && $BIN --harmony ./node_modules/istanbul/lib/cli.js cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./dist/lodash.$BUILD.js && nvm use 0.10 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage)"
- "([ $SAUCE_LABS == true ] || [ $ISTANBUL == true ]) || cd ./test"
- "([ $SAUCE_LABS == true ] || [ $ISTANBUL == true ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
- "([ $SAUCE_LABS == true ] || [ $ISTANBUL == true ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
- "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production\""
- "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production,ie-compat\" compatMode=7"
- "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development\""