cut redundant builds from the travis config, fixed jenkins script

This commit is contained in:
Spencer Alger
2014-01-07 14:51:40 -07:00
parent d1e04c57fb
commit d7f12f1d86
4 changed files with 36 additions and 23 deletions

View File

@ -1,20 +1,23 @@
language: node_js language: node_js
node_js: node_js: false
- "0.10" matrix:
- "0.8" fast_finish: true
env:
# - ES_RELEASE=0.90.0 ES_BRANCH=0.90 include:
# - ES_RELEASE=0.90.1 ES_BRANCH=0.90 - node_js: "0.10"
# - ES_RELEASE=0.90.2 ES_BRANCH=0.90 env: ES_RELEASE=0.90.8 ES_BRANCH=0.90 NO_UNIT=true
# - ES_RELEASE=0.90.3 ES_BRANCH=0.90 - node_js: "0.10"
# - ES_RELEASE=0.90.4 ES_BRANCH=0.90 env: ES_RELEASE=0.90.9 ES_BRANCH=0.90 NO_UNIT=true
# - ES_RELEASE=0.90.5 ES_BRANCH=0.90 - node_js: "0.10"
# - ES_RELEASE=0.90.6 ES_BRANCH=0.90 env: ES_BRANCH=0.90 NO_UNIT=true
- ES_RELEASE=0.90.7 ES_BRANCH=0.90 - node_js: "0.10"
- ES_RELEASE=0.90.8 ES_BRANCH=0.90 env: ES_BRANCH=master
- ES_RELEASE=0.90.9 ES_BRANCH=0.90 - node_js: "0.8"
- ES_BRANCH=0.90 env: ES_BRANCH=master
- ES_BRANCH=master
exclude:
- node_js: false
script: ./scripts/travis.sh script: ./scripts/travis.sh
email: email:
recipients: recipients:

View File

@ -1,10 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# generate the latest version of the yaml-tests
./node_modules/.bin/grunt run:generate_yaml_tests --es_branch="=$ES_V"
export VERBOSE="true" export VERBOSE="true"
if [ -x $ES_V ]; then
echo "missing ES_V environment var"
exit 1
fi
# generate the latest version of the yaml-tests
node scripts/generate --es_branch="=$ES_V" --no-api
# unit tests # unit tests
./node_modules/.bin/mocha test/unit/test_*.js \ ./node_modules/.bin/mocha test/unit/test_*.js \
--require should \ --require should \

View File

@ -61,14 +61,19 @@ echo -en 'travis_fold:start:setup_es\\r'
fi fi
sleep 3 sleep 3
echo -en 'travis_fold:end:setup_es\\r' echo -en 'travis_fold:end:setup_es\\r\\n'
echo -en 'travis_fold:start:install_grunt\\r' echo -en 'travis_fold:start:install_grunt\\r'
npm install -g grunt-cli npm install -g grunt-cli
echo -en 'travis_fold:end:install_grunt\\r' echo -en 'travis_fold:end:install_grunt\\r'
grunt --es_branch="=$ES_BRANCH" jshint mochacov:unit run:generate_yaml_tests mochacov:integration mochacov:ship_coverage if [ $NO_UNIT = "true" ]; then
RESULT=$? grunt --es_branch="=$ES_BRANCH" run:generate_yaml_tests mochacov:integration
RESULT=$?
else
grunt --es_branch="=$ES_BRANCH" jshint mochacov:unit run:generate_yaml_tests mochacov:integration mochacov:ship_coverage
RESULT=$?
fi
killall java 2>/dev/null killall java 2>/dev/null
exit $RESULT exit $RESULT