[commit: packages/directory] master: Add Travis-CI script & README (5c9de1f)
git at git.haskell.org
git at git.haskell.org
Sun Nov 3 12:03:03 UTC 2013
Repository : ssh://git@git.haskell.org/directory
On branch : master
Link : http://git.haskell.org/packages/directory.git/commitdiff/5c9de1f15cf7049d97d7ef42e8f7051d82792361
>---------------------------------------------------------------
commit 5c9de1f15cf7049d97d7ef42e8f7051d82792361
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sun Nov 3 13:02:45 2013 +0100
Add Travis-CI script & README
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
5c9de1f15cf7049d97d7ef42e8f7051d82792361
.travis.yml | 34 ++++++++++++++++++++++++++++++++++
README.md | 15 +++++++++++++++
2 files changed, 49 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c62e226
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,34 @@
+env:
+ - GHCVER=7.4.1
+ - GHCVER=7.4.2
+ - GHCVER=7.6.1
+ - GHCVER=7.6.2
+ - GHCVER=7.6.3
+
+before_install:
+ - sudo add-apt-repository -y ppa:hvr/ghc
+ - sudo apt-get update
+ - sudo apt-get install cabal-install-1.18 ghc-$GHCVER autoconf
+ - export PATH=/opt/ghc/$GHCVER/bin:$PATH
+
+install:
+ - cabal-1.18 update
+ - cabal-1.18 install --only-dependencies
+ - ghc --version
+
+script:
+ - autoreconf -i
+ - cabal-1.18 configure -v2
+ - cabal-1.18 build
+ - cabal-1.18 check
+ - cabal-1.18 sdist
+
+# The following scriptlet checks that the resulting source distribution can be built & installed
+ - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
+ cd dist/;
+ if [ -f "$SRC_TGZ" ]; then
+ cabal-1.18 install "$SRC_TGZ";
+ else
+ echo "expected '$SRC_TGZ' not found";
+ exit 1;
+ fi
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e4d6e7f
--- /dev/null
+++ b/README.md
@@ -0,0 +1,15 @@
+The `directory` Package [![Build Status](https://travis-ci.org/ghc/packages-directory.png?branch=master)](https://travis-ci.org/ghc/packages-directory)
+=======================
+
+See [`directory` on Hackage](http://hackage.haskell.org/package/directory) for
+more information.
+
+Installing from Git
+-------------------
+
+To build this package using Cabal directly from Git, you must run
+`autoreconf -i` before the usual Cabal build steps (`cabal
+{configure,build,install}`). The program `autoreconf` is part of
+[GNU autoconf](http://www.gnu.org/software/autoconf/). There is no
+need to run the `configure` script: `cabal configure` will do this for
+you.
More information about the ghc-commits
mailing list