Skip to content

Commit

Permalink
Merge pull request vibe-d#1258 from MartinNowak/travis_script
Browse files Browse the repository at this point in the history
fix BUILD_EXAMPLE and provide defaults
  • Loading branch information
s-ludwig committed Sep 13, 2015
2 parents 47ae770 + bc16a0b commit 779f134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 779f134

Please sign in to comment.