add partial cmake build to ci.sh

This commit is contained in:
Joshua Warner 2014-07-12 19:06:41 -06:00 committed by Joshua Warner
parent d248ad53b0
commit 73bbbe4812

View File

@ -2,16 +2,32 @@
set -e set -e
root_dir=$(pwd)
run() { run() {
echo '===============================================' echo '==============================================='
if [ ! $(pwd) = ${root_dir} ]; then
printf "cd $(pwd); "
fi
echo "${@}" echo "${@}"
echo '===============================================' echo '==============================================='
"${@}" "${@}"
} }
run_cmake() {
mkdir -p cmake-build
rm -rf cmake-build/*
cd cmake-build
run cmake ${@} ..
run make -j4 check
cd ..
}
if [ ${#} -gt 0 ]; then if [ ${#} -gt 0 ]; then
run make ${@} run make ${@}
else else
run_cmake -DCMAKE_BUILD_TYPE=Debug
run make jdk-test run make jdk-test
run make test run make test
run make mode=debug test run make mode=debug test