#!/usr/bin/env bash

set -ueo pipefail

if [ ! -z "${COVERAGE:-}" ]; then
    dub test -b unittest-cov
    wget https://codecov.io/bash -O codecov.sh
    bash codecov.sh
else
	dub test
fi
