From bc16a0b3b96c146fa4bc91e12b81cd57135925e3 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Fri, 11 Sep 2015 19:17:38 +0200 Subject: [PATCH] fix BUILD_EXAMPLE and provide defaults --- travis-ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/travis-ci.sh b/travis-ci.sh index 410b66ce97..c4cc138075 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -4,13 +4,13 @@ set -e -o pipefail dub test --compiler=$DC --config=${VIBED_DRIVER=libevent} -if [ ${RUN_EXAMPLE} -eq 1 ]; then +if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi -if [ ${RUN_TEST} -eq 1 ]; then +if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean)