.travis.yml (lodash-3.0.0) | : | .travis.yml (lodash-4.0.0) | ||
---|---|---|---|---|
language: node_js | language: node_js | |||
sudo: false | ||||
node_js: | node_js: | |||
- "0.10" | - "5" | |||
env: | env: | |||
global: | global: | |||
- BIN="node" BUILD="compat" ISTANBUL=false NODE_BIN=$BIN OPTION="" | - BIN="node" ISTANBUL=false OPTION="" | |||
- IOJS_VERSION="v1.0.4" NPM_VERSION="^2.0.0" SAUCE_LABS=false SAUCE_USERNAME | - SAUCE_LABS=false SAUCE_USERNAME="lodash" | |||
="lodash" | ||||
- secure: "tg1JFsIFnxzLaTboFPOnm+aJCuMm5+JdhLlESlqg9x3fwro++7KCnwHKLNovhchaP e4otC43ZMB/nfWhDnDm11dKbm/V6HlTkED+dadTsaLxVDg6J+7yK41QhokBPJOxLV78iDaNaAQVYEirA gZ0yn8kFubxmNKV+bpCGQNc9yU=" | - secure: "tg1JFsIFnxzLaTboFPOnm+aJCuMm5+JdhLlESlqg9x3fwro++7KCnwHKLNovhchaP e4otC43ZMB/nfWhDnDm11dKbm/V6HlTkED+dadTsaLxVDg6J+7yK41QhokBPJOxLV78iDaNaAQVYEirA gZ0yn8kFubxmNKV+bpCGQNc9yU=" | |||
matrix: | matrix: | |||
- BUILD="compat" | - | |||
- BUILD="modern" | ||||
- BUILD="modern" | ||||
- BUILD="modern" ISTANBUL=true | ||||
- BIN="iojs" BUILD="compat" NODE_BIN=$BIN | ||||
- BIN="iojs" BUILD="modern" NODE_BIN=$BIN | ||||
- BIN="phantomjs" | - BIN="phantomjs" | |||
- BIN="rhino" | - ISTANBUL=true | |||
- BIN="rhino" OPTION="-require" | - SAUCE_LABS=true | |||
- BIN="ringo" | ||||
matrix: | matrix: | |||
include: | include: | |||
- node_js: "0.8" | ||||
env: NPM_VERSION="~1.4.0" | ||||
- node_js: "0.8" | ||||
env: BUILD="modern" NPM_VERSION="~1.4.0" | ||||
- node_js: "0.10" | - node_js: "0.10" | |||
env: SAUCE_LABS=true | env: | |||
- node_js: "0.10" | - node_js: "0.12" | |||
env: SAUCE_LABS=true BUILD="modern" | env: | |||
- node_js: "4" | ||||
env: | ||||
git: | git: | |||
depth: 10 | depth: 10 | |||
branches: | branches: | |||
only: | only: | |||
- master | - master | |||
notifications: | ||||
webhooks: | ||||
urls: | ||||
- https://webhooks.gitter.im/e/4aab6358b0e9aed0b628 | ||||
on_success: change | ||||
on_failure: always | ||||
before_install: | before_install: | |||
- "nvm use $TRAVIS_NODE_VERSION" | - "nvm use $TRAVIS_NODE_VERSION" | |||
- "npm config set loglevel error" | - "npm config set loglevel error" | |||
- "npm i -g npm@\"$NPM_VERSION\"" | - "npm i -g npm@\"^2.0.0\"" | |||
- "[ $SAUCE_LABS == false ] || npm i chalk@\"0.5.1\" ecstatic@\"0.5.8\" reques | - | | |||
t@\"^2.0.0\" sauce-tunnel@\"^2.0.0\"" | PATTERN[0]="|\s*if\s*\(isHostObject\b[\s\S]+?\}(?=\n)|" | |||
- "[ $ISTANBUL == false ] || (npm i -g coveralls@\"^2.0.0\" && npm i istanbu | PATTERN[1]="|\s*if\s*\(enumerate\b[\s\S]+?\};\s*\}|" | |||
l@\"0.3.5\")" | PATTERN[2]="|\s*while\s*\([^)]+\)\s*\{\s*iteratee\(index\);\s*\}|" | |||
- "[ $BIN != 'iojs' ] || (wget https://iojs.org/dist/${IOJS_VERSION}/iojs-${I | PATTERN[3]="|\s*else\s*\{\s*assocSet\(data\b[\s\S]+?\}|" | |||
OJS_VERSION}-linux-x64.tar.xz && sudo tar xJf iojs-${IOJS_VERSION}-linux-x64.tar | PATTERN[4]="|\s*if\s*\(ctorString\b[\s\S]+?\}\s*\}|" | |||
.xz -C /opt && rm iojs-${IOJS_VERSION}-linux-x64.tar.xz)" | PATTERN[5]="|\bindex,\s*iterable\)\s*===\s*false\)[^}]+?(break;)|" | |||
- "[ $BIN != 'iojs' ] || (sudo ln -s /opt/iojs-${IOJS_VERSION}-linux-x64/bin/ | PATTERN[6]="|\s*if\s*\(!lodashFunc\)\s*\{\s*return;\s*\}|" | |||
iojs /usr/local/bin/iojs && sudo chmod +x $_)" | PATTERN[7]="|\s*define\([\s\S]+?\);|" | |||
- "[ $BIN != 'rhino' ] || (sudo mkdir /opt/rhino-1.7R5 && sudo wget --no-check | PATTERN[8]="|\s*root\._\s*=\s*_;|" | |||
-certificate -O $_/js.jar https://lodash.com/_travis/rhino-1.7R5.jar)" | ||||
- "[ $BIN != 'rhino' ] || (echo -e '#!/bin/sh\\njava -jar /opt/rhino-1.7R5/js. | if [ $ISTANBUL == true ]; then | |||
jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino)" | set -e | |||
- "[ $BIN != 'ringo' ] || (wget --no-check-certificate https://lodash.com/_tra | for PTRN in ${PATTERN[@]}; do | |||
vis/ringojs-0.11.zip && sudo unzip ringojs-0.11 -d /opt && rm ringojs-0.11.zip)" | node ./test/remove.js "$PTRN" ./lodash.js | |||
- "[ $BIN != 'ringo' ] || (sudo ln -s /opt/ringojs-0.11/bin/ringo /usr/local/b | done | |||
in/ringo && sudo chmod +x $_)" | fi | |||
- "sed -i'' 's|\"lodash\"|\"lodash-compat\"|' ./package.json" | - "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./n | |||
- "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli.git | ode_modules/lodash-cli && mkdir $_/node_modules && cd $_ && ln -s ../../../ ./lo | |||
./node_modules/lodash-cli && mkdir $_/node_modules && cd $_ && ln -s ../../../ | dash && cd ../ && npm i && cd ../../" | |||
./lodash-compat && cd ../ && npm i && cd ../../" | - "node ./node_modules/lodash-cli/bin/lodash -o ./dist/lodash.js" | |||
- "$NODE_BIN ./node_modules/lodash-cli/bin/lodash $BUILD -o ./lodash.$BUILD.js | ||||
" | ||||
script: | script: | |||
- "[ $ISTANBUL == false ] || (nvm install 0.11.11 && cp ./lodash.$BUILD.js . | - "[ $ISTANBUL == false ] || istanbul cover -x \"**/vendor/**\" --report lco | |||
/lodash.js && $BIN --harmony ./node_modules/istanbul/lib/cli.js cover -x \"**/ve | vonly ./test/test.js -- ./lodash.js" | |||
ndor/**\" --report lcovonly ./test/test.js -- ./lodash.js)" | - "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./ | |||
- "([ $ISTANBUL == true ] && [ $TRAVIS_SECURE_ENV_VARS == true ] && nvm use | coverage/lcov.info | coveralls) || true" | |||
$TRAVIS_NODE_VERSION && cat ./coverage/lcov.info | coveralls) || true" | - "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./ | |||
coverage/coverage.json | codecov) || true" | ||||
- "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || cd ./test" | - "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || cd ./test" | |||
- "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || $BIN $OPTION ./test.js | - "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || $BIN $OPTION ./test.js | |||
../lodash.$BUILD.js" | ../lodash.js" | |||
- "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || $BIN $OPTION ./test.js | - "[ $SAUCE_LABS == true ] || [ $ISTANBUL == true ] || [ $TRAVIS_SECURE_ENV_V | |||
../lodash.$BUILD.min.js" | ARS == false ] || $BIN $OPTION ./test.js ../dist/lodash.min.js" | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" | - "[ $SAUCE_LABS == false ] || rm -rf ./node_modules/lodash" | |||
runner=\"test/index.html?build=../lodash.$BUILD.js&noglobals=true\" tags=\"$BUIL | - "[ $SAUCE_LABS == false ] || ($BIN ./node_modules/lodash-cli/bin/lodash modu | |||
D,development\"" | larize exports=node -o ./node_modules/lodash && node ./node_modules/lodash-cli/b | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" | in/lodash -d -o ./node_modules/lodash/index.js)" | |||
runner=\"test/index.html?build=../lodash.$BUILD.min.js&noglobals=true\" tags=\"$ | - "[ $SAUCE_LABS == false ] || $BIN ./node_modules/lodash-cli/bin/lodash core | |||
BUILD,production\"" | -o ./dist/lodash.core.js" | |||
- "[ $SAUCE_LABS == false ] || [ $BUILD != 'compat' ] || $BIN ./test/saucelabs | - "[ $SAUCE_LABS == false ] || npm run build" | |||
.js name=\"lodash tests\" runner=\"test/index.html?build=../lodash.$BUILD.js\" t | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" | |||
ags=\"$BUILD,development,ie-compat\" compatMode=7" | runner=\"test/index.html?build=../dist/lodash.js&noglobals=true\" tags=\ | |||
- "[ $SAUCE_LABS == false ] || [ $BUILD != 'compat' ] || $BIN ./test/saucelabs | "development\"" | |||
.js name=\"lodash tests\" runner=\"test/index.html?build=../lodash.$BUILD.min.js | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" | |||
\" tags=\"$BUILD,production,ie-compat\" compatMode=7" | runner=\"test/index.html?build=../dist/lodash.min.js&noglobals=true\" tags=\ | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | "production\"" | |||
" runner=\"test/backbone.html?build=../lodash.$BUILD.min.js\" tags=\"$BUILD,pr | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash-fp tests | |||
oduction,backbone\"" | \" runner=\"test/fp.html?noglobals=true\" tags=\ | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | "development\"" | |||
" runner=\"test/backbone.html?build=../lodash.$BUILD.js\" tags=\"$BUILD,develo | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore test | |||
pment,backbone\"" | s\" runner=\"test/underscore.html?build=../dist/lodash.js\" tags=\ | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore test | "development,underscore\"" | |||
s\" runner=\"test/underscore.html?build=../lodash.$BUILD.min.js\" tags=\"$BUILD, | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore test | |||
production,underscore\"" | s\" runner=\"test/underscore.html?build=../dist/lodash.min.js\" tags=\ | |||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore test | "production,underscore\"" | |||
s\" runner=\"test/underscore.html?build=../lodash.$BUILD.js\" tags=\"$BUILD,deve | - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | |||
lopment,underscore\"" | " runner=\"test/backbone.html?build=../dist/lodash.js\" tags=\ | |||
"development,backbone\"" | ||||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | ||||
" runner=\"test/backbone.html?build=../dist/lodash.min.js\" tags=\ | ||||
"production,backbone\"" | ||||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | ||||
" runner=\"test/backbone.html?build=../dist/lodash.core.js\" tags=\ | ||||
"development,backbone\"" | ||||
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\ | ||||
" runner=\"test/backbone.html?build=../dist/lodash.core.min.js\" tags=\ | ||||
"production,backbone\"" | ||||
End of changes. 11 change blocks. | ||||
49 lines changed or deleted | 46 lines changed or added |