[commit: haddock] 2.15, 2.15.0.1, 2.15.0.2, T6018-injective-type-families, adamse-D1033, clean, fix-travis, ghc-head, master, metainfo, v2.15, wip/10268, wip/10313, wip/D538, wip/D538-1, wip/D538-2, wip/D538-3, wip/D538-4, wip/D538-5, wip/D538-6, wip/D548-master, wip/D548-master-2, wip/T10483, wip/T8584, wip/T9840, wip/api-ann-hstylit, wip/api-ann-hstylit-1, wip/api-ann-hstylit-2, wip/api-ann-hstylit-3, wip/api-ann-hstylit-4, wip/api-ann-hstylit-5, wip/api-annot-tweaks-7.10, wip/api-annots-ghc-7.10-3, wip/ast-annotations-separate, wip/ast-prepare-annotations, wip/ast-prepare-annotations-final, wip/ast-prepare-annotations-final2, wip/ast-prepare-annotations-final3, wip/ast-prepare-annotations-final4, wip/ast-prepare-annotations-final5, wip/ast-prepare-annotations-final6, wip/attoparsec-update, wip/landmine-param-family, wip/orf-new, wip/orf-reboot, wip/pattern-synonyms, wip/rae, wip/remove-cabal-dep, wip/trac-9744: Use Travis with multiple GHC versions (fcad1df)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:28:35 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branches: 2.15,2.15.0.1,2.15.0.2,T6018-injective-type-families,adamse-D1033,clean,fix-travis,ghc-head,master,metainfo,v2.15,wip/10268,wip/10313,wip/D538,wip/D538-1,wip/D538-2,wip/D538-3,wip/D538-4,wip/D538-5,wip/D538-6,wip/D548-master,wip/D548-master-2,wip/T10483,wip/T8584,wip/T9840,wip/api-ann-hstylit,wip/api-ann-hstylit-1,wip/api-ann-hstylit-2,wip/api-ann-hstylit-3,wip/api-ann-hstylit-4,wip/api-ann-hstylit-5,wip/api-annot-tweaks-7.10,wip/api-annots-ghc-7.10-3,wip/ast-annotations-separate,wip/ast-prepare-annotations,wip/ast-prepare-annotations-final,wip/ast-prepare-annotations-final2,wip/ast-prepare-annotations-final3,wip/ast-prepare-annotations-final4,wip/ast-prepare-annotations-final5,wip/ast-prepare-annotations-final6,wip/attoparsec-update,wip/landmine-param-family,wip/orf-new,wip/orf-reboot,wip/pattern-synonyms,wip/rae,wip/remove-cabal-dep,wip/trac-9744
Link       : http://git.haskell.org/haddock.git/commitdiff/fcad1df036670eeecbc78129e166d9026a062a0c

>---------------------------------------------------------------

commit fcad1df036670eeecbc78129e166d9026a062a0c
Author: Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk>
Date:   Wed Jun 18 06:30:37 2014 +0200

    Use Travis with multiple GHC versions
    
    When using HEAD, we build haddock-library directly from repository as a
    dependency (and thanks to --enable-tests, the tests get ran anyway). In
    all other cases, we manually run the tests on haddock-library only and
    don't test the main project.


>---------------------------------------------------------------

fcad1df036670eeecbc78129e166d9026a062a0c
 .travis.yml | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 2119072..ab626be 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,33 @@
 language: haskell
 
+env:
+ - GHCVER=7.6.3
+ - GHCVER=7.8.1
+ - GHCVER=7.8.2
+ - GHCVER=7.8.3
+ - GHCVER=head
+
+before_install:
+ - sudo add-apt-repository -y ppa:hvr/ghc
+ - sudo apt-get update
+ - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:$PATH
+
 install:
-  - (cd haddock-library/ && cabal install --only-dependencies --enable-tests)
+  - case "$GHCVER" in
+     "head") (cd haddock-library/ && cabal install --enable-tests
+              && cd .. && cabal install --only-dependencies --enable-tests) ;;
+     *)
+       (cd haddock-library/ && cabal install --only-dependencies --enable-tests && cd ..) ;;
+
+    esac
 
 script:
-  - (cd haddock-library/ && cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test)
+  # Yes, in case of HEAD we do end up building haddock-library twice
+  # but we want to see the test results.
+  - (cd haddock-library/ && cabal configure --enable-tests --ghc-options=-Werror
+     && cabal build && cabal test && cabal install && cd ..)
+  - case "$GHCVER" in
+     "head") (cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test) ;;
+     *) ;;
+    esac
\ No newline at end of file



More information about the ghc-commits mailing list