From 2a2382f476f1ff3d17ff168f0537bee9f432e1ea Mon Sep 17 00:00:00 2001
From: Mikhail Glushenkov <mikhail.glushenkov@gmail.com>
Date: Fri, 16 Sep 2016 04:23:13 +0100
Subject: [PATCH] CI: Only test Cabal lib on GHC 7.4.

---
 .travis.yml      | 2 +-
 travis-script.sh | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 74387503d2..f9af83acb1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
      os: linux
    # These don't have -dyn/-prof whitelisted yet, so we have to
    # do the old-style installation
-   - env: GHCVER=7.4.2 SCRIPT=script
+   - env: GHCVER=7.4.2 SCRIPT=script CABAL_LIB_ONLY=YES
      os: linux
      sudo: required
    - env: GHCVER=7.6.3 SCRIPT=script
diff --git a/travis-script.sh b/travis-script.sh
index 3914339ae5..8985260380 100755
--- a/travis-script.sh
+++ b/travis-script.sh
@@ -73,6 +73,10 @@ timed cabal new-build Cabal Cabal:package-tests Cabal:unit-tests
 
 unset CABAL_BUILDDIR
 
+if [ "x$CABAL_LIB_ONLY" = "xYES" ]; then
+    exit 0;
+fi
+
 # ---------------------------------------------------------------------
 # cabal-install
 # ---------------------------------------------------------------------
-- 
GitLab