2016-01-29 10:41:02 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-01-29 10:36:05 +00:00
|
|
|
|
2016-01-29 10:41:02 +00:00
|
|
|
set -ueo pipefail
|
|
|
|
|
|
|
|
if [ ! -z "${COVERAGE:-}" ]; then
|
2019-03-05 12:04:45 +00:00
|
|
|
dub build --build=docs
|
|
|
|
|
2016-01-29 10:41:02 +00:00
|
|
|
dub test -b unittest-cov
|
2018-01-17 23:02:06 +00:00
|
|
|
wget https://codecov.io/bash -O codecov.sh
|
|
|
|
bash codecov.sh
|
2016-01-29 10:41:02 +00:00
|
|
|
else
|
2020-03-26 06:44:08 +00:00
|
|
|
dub test
|
2020-04-09 19:18:21 +00:00
|
|
|
|
|
|
|
meson build && ninja -C build || echo Warning: Meson build failed!
|
2016-01-29 10:41:02 +00:00
|
|
|
fi
|