aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index d48e656..04b16d4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,21 @@ ghc:
- 7.6
- 7.8
+sudo: false
+
+addons:
+ apt:
+ packages:
+ - zlib1g-dev
+
+cache:
+ apt: true
+ directories:
+ - ~/.cabal
+ - ~/.ghc
+ - ~/.ghc-mod
+ - ~/.stack
+
install:
- export HOME=/tmp
- cabal update
@@ -13,6 +28,9 @@ install:
- if [ -n "$(ghc --version | awk '{ print $8 }' | sed -n '/^7.4/p')" ]; then cabal install Cabal --constraint "Cabal == 1.16.*"; fi
+before_script:
+ - rm -f ~/.ghc-mod cabal-helper-*-Cabal-*
+
script:
- touch ChangeLog # Create ChangeLog if we're not on the release branch
- cabal check