From 07646cda2e02429d8afffab4f439bf21783bb8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Fri, 29 Jan 2016 11:41:02 +0100 Subject: [PATCH] Only perform coverage analysis for one compiler version. --- .travis.yml | 1 + travis.sh | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f62157..f8a67dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: d d: - dmd-2.070.0 - dmd-2.069.2 + env: [COVERAGE=true] - dmd-2.068.2 sudo: false diff --git a/travis.sh b/travis.sh index e9f0aaf..aa88675 100755 --- a/travis.sh +++ b/travis.sh @@ -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