Newer
Older
dub_jkp / travis-ci.sh
@Sönke Ludwig Sönke Ludwig on 27 Feb 2016 609 bytes Echo test commands.
  1. #!/bin/bash
  2.  
  3. set -v -e -o pipefail
  4.  
  5. if [ -z "$FRONTEND" -o "$FRONTEND" \> 2.065.z ]; then
  6. vibe_ver=$(jq -r '.versions | .["vibe-d"]' < dub.selections.json)
  7. dub fetch vibe-d --version=$vibe_ver # get optional dependency
  8. dub test --compiler=${DC} -c library-nonet
  9. fi
  10.  
  11. if [ "$COVERAGE" = true ]; then
  12. # library-nonet fails to build with coverage (Issue 13742)
  13. dub test --compiler=${DC} -b unittest-cov
  14. ./build.sh -cov
  15. else
  16. ./build.sh
  17. fi
  18. DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh
  19.  
  20. if [ "$COVERAGE" = true ]; then
  21. dub fetch doveralls
  22. dub run doveralls --compiler=${DC}
  23. fi