Files
lodash/.travis.yml
2013-09-18 23:27:11 -07:00

30 lines
1.2 KiB
YAML

language: node_js
node_js:
- "0.6"
- "0.8"
- "0.10"
env:
- 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:
only:
- master
before_script:
- "npm install -g istanbul"
script:
- "[ $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"