mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Add legacy and mobile builds to .travis.yml.
This commit is contained in:
21
.travis.yml
21
.travis.yml
@@ -4,11 +4,15 @@ node_js:
|
|||||||
- "0.8"
|
- "0.8"
|
||||||
- "0.10"
|
- "0.10"
|
||||||
env:
|
env:
|
||||||
- TEST_COMMAND="istanbul cover ./test/test.js"
|
- BIN="istanbul" BUILD=false MAKE=false
|
||||||
- TEST_COMMAND="phantomjs ./test/test.js ../dist/lodash.compat.js"
|
- BIN="node" BUILD="compat" MAKE=false
|
||||||
- TEST_COMMAND="phantomjs ./test/test.js ../dist/lodash.compat.min.js"
|
- BIN="node" BUILD="modern" MAKE=false
|
||||||
- TEST_COMMAND="node ./test/test.js ../dist/lodash.js"
|
- BIN="node" BUILD="legacy" MAKE=true
|
||||||
- TEST_COMMAND="node ./test/test.js ../dist/lodash.min.js"
|
- 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:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
branches:
|
branches:
|
||||||
@@ -17,4 +21,9 @@ branches:
|
|||||||
before_script:
|
before_script:
|
||||||
- "npm install -g istanbul"
|
- "npm install -g istanbul"
|
||||||
script:
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user