Update test script to take into account the selected test configuration.
This commit is contained in:
parent
4c4a69a0be
commit
671fd0f078
10
travis-ci.sh
10
travis-ci.sh
|
@ -3,19 +3,19 @@
|
||||||
set -e -x -o pipefail
|
set -e -x -o pipefail
|
||||||
|
|
||||||
# test for successful release build
|
# test for successful release build
|
||||||
dub build --combined -b release --compiler=$DC
|
dub build -b release --compiler=$DC -c $CONFIG
|
||||||
|
|
||||||
# test for successful 32-bit build
|
# test for successful 32-bit build
|
||||||
if [ "$DC" == "dmd" ]; then
|
if [ "$DC" == "dmd" ]; then
|
||||||
dub build --combined --arch=x86
|
dub build --arch=x86 -c $CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dub test --combined --compiler=$DC
|
dub test --compiler=$DC -c $CONFIG
|
||||||
|
|
||||||
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
||||||
for ex in $(\ls -1 examples/*.d); do
|
for ex in $(\ls -1 examples/*.d); do
|
||||||
echo "[INFO] Building example $ex"
|
echo "[INFO] Building example $ex"
|
||||||
dub build --compiler=$DC --single $ex
|
dub build --compiler=$DC --single $ex # --override-config eventcore/$CONFIG
|
||||||
done
|
done
|
||||||
rm -rf examples/.dub/
|
rm -rf examples/.dub/
|
||||||
rm examples/*-example
|
rm examples/*-example
|
||||||
|
@ -23,6 +23,6 @@ fi
|
||||||
if [ ${RUN_TEST=1} -eq 1 ]; then
|
if [ ${RUN_TEST=1} -eq 1 ]; then
|
||||||
for ex in `\ls -1 tests/*.d`; do
|
for ex in `\ls -1 tests/*.d`; do
|
||||||
echo "[INFO] Running test $ex"
|
echo "[INFO] Running test $ex"
|
||||||
dub --temp-build --compiler=$DC --single $ex
|
dub --temp-build --compiler=$DC --single $ex # --override-config eventcore/$CONFIG
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue