language: node_js
node_js:
  - "0.6"
  - "0.8"
  - "0.10"
env:
  - TEST_COMMAND="node ./node_modules/lodash/test/test.js ./compat/lodash.js"
  - TEST_COMMAND="node ./node_modules/lodash/test/test.js ./modern/lodash.js"
git:
  depth: 1
branches:
  only:
    - master
script:
  - "git clone --depth=1 --branch=master git://github.com/lodash/lodash.git ./node_modules/lodash/"
  - $TEST_COMMAND

language: node_js
node_js:
  - "0.6"
  - "0.8"
  - "0.10"
env:
  - BUILD=false TEST_COMMAND="node ./node_modules/lodash/test/test.js ./compat/lodash.js"
  - BUILD=false TEST_COMMAND="node ./node_modules/lodash/test/test.js ./modern/lodash.js"
  - BUILD=true  TEST_COMMAND="node ./node_modules/lodash/test/test.js ./legacy/lodash.js"
  - BUILD=true  TEST_COMMAND="node ./node_modules/lodash/test/test.js ./mobile/lodash.js"
git:
  depth: 1
branches:
  only:
    - master
script:
  - "git clone --depth=1 --branch=master git://github.com/lodash/lodash.git ./node_modules/lodash"
  - "$BUILD && git clone --depth=1 --branch=master git://github.com/lodash/lodash-cli.git ./node_modules/lodash-cli || true"
  - "$BUILD && mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../lodash ./lodash && cd ../../../ || true"
  - "$BUILD && node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./legacy || true"
  - "$BUILD && node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./mobile || true"
  - $TEST_COMMAND

Add `legacy` and `mobile` builds to travic-ci tests.
Add `legacy` and `mobile` builds to travic-ci tests.
