still debugging jenkins. Trying to figure out what is happening

This commit is contained in:
Spencer Alger
2014-01-15 15:12:16 -07:00
parent ad95a609d6
commit 58619d7839

View File

@ -54,21 +54,27 @@ else
fi fi
if [[ "$NODE_UNIT" != "0" ]]; then if [[ "$NODE_UNIT" != "0" ]]; then
group "start:unit_tests"
if [[ -n "$JENKINS" ]]; then if [[ -n "$JENKINS" ]]; then
./node_modules/.bin/mocha test/unit/test_*.js \ MOCHA_EXE="./node_modules/.bin/mocha test/unit/test_*.js \
--require should \ --require should \
--reporter ../../../test/utils/jenkins-reporter.js \ --reporter ../../../test/utils/jenkins-reporter.js"
2> test/junit-node-unit.xml echo "\$ $MOCHA_EXE"
$MOCHA_EXE 2> test/junit-node-integration.xml
else else
grunt_ jshint mochacov:unit grunt_ jshint mochacov:unit
fi fi
group "end:unit_tests"
fi fi
if [[ "$NODE_INTEGRATION" != "0" ]]; then if [[ "$NODE_INTEGRATION" != "0" ]]; then
group "start:generate_tests" group "start:generate tests"
call node scripts/generate --no-api call node scripts/generate --no-api
group "end:generate_tests" group "end:generate tests"
group "start:integration tests"
if [[ -n "$JENKINS" ]]; then if [[ -n "$JENKINS" ]]; then
# convert TESTING_BRANCH into BRANCH_SUFFIX # convert TESTING_BRANCH into BRANCH_SUFFIX
if [[ $TESTING_BRANCH = 'master' ]]; then if [[ $TESTING_BRANCH = 'master' ]]; then
@ -85,23 +91,30 @@ if [[ "$NODE_INTEGRATION" != "0" ]]; then
ES_PORT=9200 ES_PORT=9200
fi fi
./node_modules/.bin/mocha test/integration/yaml_suite/index${BRANCH_SUFFIX}.js \ MOCHA_EXE="./node_modules/.bin/mocha test/integration/yaml_suite/index${BRANCH_SUFFIX}.js \
--require should \ --require should \
--host localhost \ --host localhost \
--port $ES_PORT \ --port $ES_PORT \
--reporter ../../../test/utils/jenkins-reporter.js \ --reporter ../../../test/utils/jenkins-reporter.js"
2> test/junit-node-integration.xml echo "\$ $MOCHA_EXE"
$MOCHA_EXE 2> test/junit-node-integration.xml
else else
manage_es start $TESTING_BRANCH $ES_RELEASE manage_es start $TESTING_BRANCH $ES_RELEASE
grunt_ mochacov:integration_$TESTING_BRANCH grunt_ mochacov:integration_$TESTING_BRANCH
manage_es stop $TESTING_BRANCH $ES_RELEASE manage_es stop $TESTING_BRANCH $ES_RELEASE
fi fi
group "end:integration tests"
fi fi
if [[ -n "$TEST_BROWSER" ]]; then if [[ -n "$TEST_BROWSER" ]]; then
group "start:browser tests"
grunt_ browser_clients:build run:browser_test_server saucelabs-mocha:${TEST_BROWSER} grunt_ browser_clients:build run:browser_test_server saucelabs-mocha:${TEST_BROWSER}
group "end:browser tests"
fi fi
if [[ "$COVERAGE" == "1" ]]; then if [[ "$COVERAGE" == "1" ]]; then
group "start:ship coverage"
grunt_ mochacov:ship_coverage grunt_ mochacov:ship_coverage
group "stop:ship coverage"
fi fi