taggedalgebraic/travis.sh

18 lines
406 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ueo pipefail
if [ ! -z "${COVERAGE:-}" ]; then
2019-03-05 12:04:45 +00:00
dub build --build=docs
dub test -b unittest-cov
2018-01-17 23:02:06 +00:00
wget https://codecov.io/bash -O codecov.sh
bash codecov.sh
else
2020-03-26 06:44:08 +00:00
dub test
2020-04-09 19:18:21 +00:00
2020-04-17 17:14:48 +00:00
if [ "x$TEST_MESON" = "xtrue" ] && ! [ "x$TRAVIS_COMPILER" = "xdmd" && $(dmd --version | head -n1) = "DMD64 D Compiler v2.085.1"]; then
meson build && ninja -C build
fi
fi