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