Only perform coverage analysis for one compiler version.

This commit is contained in:
Sönke Ludwig 2016-01-29 11:41:02 +01:00
parent c592c31340
commit 07646cda2e
2 changed files with 11 additions and 4 deletions

View file

@ -3,6 +3,7 @@ language: d
d:
- dmd-2.070.0
- dmd-2.069.2
env: [COVERAGE=true]
- dmd-2.068.2
sudo: false

View file

@ -1,5 +1,11 @@
#!/bin/sh
#!/usr/bin/env bash
dub fetch doveralls
dub test -b unittest-cov
dub run doveralls
set -ueo pipefail
if [ ! -z "${COVERAGE:-}" ]; then
dub fetch doveralls
dub test -b unittest-cov
dub run doveralls
else
dub test
fi