[commit: packages/xhtml] master: Add .travis.yml file (2793377)

git at git.haskell.org git at git.haskell.org
Sat Jun 17 20:55:43 UTC 2017


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

On branch  : master
Link       : http://git.haskell.org/packages/xhtml.git/commitdiff/2793377e705e031b48a8517f48613b336d38af91

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

commit 2793377e705e031b48a8517f48613b336d38af91
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Sun Oct 23 14:30:28 2016 +1100

    Add .travis.yml file


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

2793377e705e031b48a8517f48613b336d38af91
 .travis.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..21fa639
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+# language: haskell
+
+# See http://www.reddit.com/r/haskell/comments/1os3f6/how_to_use_travisci_with_multiple_ghc_versions/
+
+env:
+ - GHCVER=7.6.3
+ - GHCVER=7.8.4
+ - GHCVER=7.10.3
+ - GHCVER=8.0.1
+
+before_install:
+ - sudo add-apt-repository -y ppa:hvr/ghc
+ - sudo apt-get update
+ - sudo apt-get install cabal-install-1.24 ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:$PATH
+
+install:
+ - cabal-1.24 update
+ - cabal-1.24 install --only-dependencies --enable-tests
+
+script:
+ - cabal-1.24 configure --enable-tests
+ - cabal-1.24 build
+ - cabal-1.24 check
+ - cabal-1.24 haddock
+ - cabal-1.24 sdist



More information about the ghc-commits mailing list