mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Update .travis.yml dep versions and make coveralls reporting optional so we don't fail when their service is down.
This commit is contained in:
@@ -56,8 +56,8 @@ branches:
|
||||
before_install:
|
||||
- "[ $TRAVIS_NODE_VERSION != '0.6' ] || npm config set ca \"\""
|
||||
- "([ $BUILD == 'compat' ] || [ $BUILD == 'legacy' ]) && COMPAT=true || true"
|
||||
- "[ $SAUCE_LABS == false ] || npm i ecstatic@\"~0.4.0\" request@\"~2.27.0\" sauce-tunnel@\"~1.1.0\""
|
||||
- "[ $ISTANBUL == false ] || npm i -g coveralls@\"~2.5.0\" && npm i istanbul@\"~0.1.0\""
|
||||
- "[ $SAUCE_LABS == false ] || npm i ecstatic@\"~0.4.0\" request@\"~2.33.0\" sauce-tunnel@\"~1.1.0\""
|
||||
- "[ $ISTANBUL == false ] || npm i -g coveralls@\"~2.6.0\" && npm i istanbul@\"~0.2.0\""
|
||||
- "[ $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)"
|
||||
- "[ $BIN != 'narwhal' ] || (sudo ln -s /opt/narwhal-0.3.2/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal)"
|
||||
- "[ $BIN != 'rhino' ] || (sudo mkdir /opt/rhino-1.7R5 && sudo wget -O /opt/rhino-1.7R5/js.jar https://oss.sonatype.org/content/repositories/snapshots/org/mozilla/rhino/1.7R5-SNAPSHOT/rhino-1.7R5-20120629.144839-4.jar)"
|
||||
@@ -68,7 +68,8 @@ 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.$BUILD.js && nvm use 0.10 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage)"
|
||||
- "[ $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)"
|
||||
- "[ $ISTANBUL == true ] && (nvm use 0.10 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage) || true"
|
||||
- "([ $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"
|
||||
|
||||
Reference in New Issue
Block a user