corda/test/ci.sh

35 lines
960 B
Bash
Raw Normal View History

#!/bin/sh
set -e
2014-05-09 21:16:55 +00:00
run() {
echo '==============================================='
echo "${@}"
echo '==============================================='
"${@}"
}
if [ -z "${test_target}" ]; then
test_target=test
fi
# we shouldn't run jdk-test builds if we're not running the test target
if [ ${test_target} = test ]; then
2014-05-09 21:16:55 +00:00
run make ${flags} jdk-test
fi
2014-05-09 21:16:55 +00:00
run make ${flags} ${test_target}
run make ${flags} mode=debug ${test_target}
run make ${flags} process=interpret ${test_target}
# bootimage and openjdk builds without openjdk-src don't work:
if [ -z "${openjdk}" ]; then
2014-05-09 21:16:55 +00:00
run make ${flags} bootimage=true ${test_target}
run make ${flags} mode=debug bootimage=true ${test_target}
if [ -z "${android}" ]; then
# might as well do an openjdk test while we're here:
run make openjdk=$JAVA_HOME ${flags} ${test_target}
fi
fi
2014-07-16 20:18:42 +00:00
run make ${flags} tails=true continuations=true heapdump=true ${test_target}
2014-05-09 21:16:55 +00:00
run make ${flags} codegen-targets=all