Add legacy and mobile builds to .travis.yml.

This commit is contained in:
John-David Dalton
2013-09-18 22:06:18 -07:00
parent bf2a2aed66
commit c2da0070f5

View File

@@ -4,11 +4,15 @@ node_js:
- "0.8"
- "0.10"
env:
- TEST_COMMAND="istanbul cover ./test/test.js"
- TEST_COMMAND="phantomjs ./test/test.js ../dist/lodash.compat.js"
- TEST_COMMAND="phantomjs ./test/test.js ../dist/lodash.compat.min.js"
- TEST_COMMAND="node ./test/test.js ../dist/lodash.js"
- TEST_COMMAND="node ./test/test.js ../dist/lodash.min.js"
- BIN="istanbul" BUILD=false MAKE=false
- BIN="node" BUILD="compat" MAKE=false
- BIN="node" BUILD="modern" MAKE=false
- BIN="node" BUILD="legacy" MAKE=true
- BIN="node" BUILD="mobile" MAKE=true
- BIN="phantomjs" BUILD="compat" MAKE=false
- BIN="phantomjs" BUILD="modern" MAKE=false
- BIN="phantomjs" BUILD="legacy" MAKE=true
- BIN="phantomjs" BUILD="mobile" MAKE=true
git:
depth: 1
branches:
@@ -17,4 +21,9 @@ branches:
before_script:
- "npm install -g istanbul"
script:
- $TEST_COMMAND
- "[ $BIN == 'istanbul' ] && $BIN cover ./test/test.js || true"
- "[ $MAKE != false ] && git clone --depth=1 --branch=master git://github.com/lodash/lodash-cli.git ./node_modules/lodash-cli || true"
- "[ $MAKE != false ] && mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../../ ./lodash && cd ../ && npm i . && cd ../../ || true"
- "[ $MAKE != false ] && node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js || true"
- "[ $BUILD != false ] && $BIN ./test/test.js ./dist/lodash.$BUILD.js || true"
- "[ $BUILD != false ] && $BIN ./test/test.js ./dist/lodash.$BUILD.min.js || true"