From 355f62693970837f4fac5f40c43642f6190543c4 Mon Sep 17 00:00:00 2001 From: Brandon Simmons Date: Tue, 15 Nov 2016 19:48:30 -0500 Subject: [PATCH] Try travis with ghc 8 release and with GHCJS (ghc-7.10) This also exercises 32-bit support, but we really want to do this explicitly in #9. --- .travis.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c983cb1..6324114 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,14 +4,22 @@ language: c # explicitly request container-based infrastructure sudo: false +cache: + directories: + - $HOME/.cabal + matrix: include: - env: CABALVER=1.18 GHCVER=7.6.3 addons: {apt: {packages: [cabal-install-1.18,ghc-7.6.3], sources: [hvr-ghc]}} - env: CABALVER=1.18 GHCVER=7.8.4 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}} - - env: CABALVER=1.22 GHCVER=7.10.1 - addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}} + - env: CABALVER=1.22 GHCVER=7.10.3 + addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3],sources: [hvr-ghc]}} + - env: CABALVER=1.24 GHCVER=7.10.3 MAYBE_GHCJS=--ghcjs + addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3,happy-1.19.5],sources: [hvr-ghc]}} + - env: CABALVER=1.24 GHCVER=8.0.1 + addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1], sources: [hvr-ghc]}} - env: CABALVER=head GHCVER=head addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}} @@ -19,14 +27,15 @@ matrix: - env: CABALVER=head GHCVER=head before_install: - - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH + - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH + - [ -x $HOME/.cabal/bin/ghcjs ] || (cabal install http://ghcjs.luite.com/master.tar.gz && ghcjs-boot) install: - travis_retry cabal update - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config - - cabal install --only-dependencies --enable-tests -fdev + - cabal install $MAYBE_GHCJS --only-dependencies --enable-tests -fdev script: - - cabal configure -fdev --enable-tests -finstrumented + - cabal configure $MAYBE_GHCJS -fdev --enable-tests -finstrumented - cabal build - cabal test tests