Skip to content

Commit

Permalink
Use the tested DUB to build itself in the nonet configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Oct 11, 2016
1 parent dca6368 commit 0c4a778
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions travis-ci.sh
Expand Up @@ -2,22 +2,23 @@

set -v -e -o pipefail

if [ -z "$FRONTEND" -o "$FRONTEND" \> 2.066.z ]; then
vibe_ver=$(jq -r '.versions | .["vibe-d"]' < dub.selections.json)
dub fetch vibe-d --version=$vibe_ver # get optional dependency
dub test --compiler=${DC} -c library-nonet
fi

if [ "$COVERAGE" = true ]; then
# library-nonet fails to build with coverage (Issue 13742)
dub test --compiler=${DC} -b unittest-cov
./build.sh -cov
else
./build.sh
fi

if [ -z "$FRONTEND" -o "$FRONTEND" \> 2.066.z ]; then
vibe_ver=$(jq -r '.versions | .["vibe-d"]' < dub.selections.json)
./bin/dub fetch vibe-d --version=$vibe_ver # get optional dependency
./bin/dub test --compiler=${DC} -c library-nonet
fi

DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh

if [ "$COVERAGE" = true ]; then
dub fetch doveralls
dub run doveralls --compiler=${DC}
./bin/dub fetch doveralls
./bin/dub run doveralls --compiler=${DC}
fi

0 comments on commit 0c4a778

Please sign in to comment.