Add Travis CI job & README
authorHerbert Valerio Riedel <hvr@gnu.org>
Fri, 21 Nov 2014 10:26:12 +0000 (11:26 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Fri, 21 Nov 2014 10:26:35 +0000 (11:26 +0100)
.travis.yml [new file with mode: 0644]
README.md [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..c577976
--- /dev/null
@@ -0,0 +1,38 @@
+env:
+ - CABALVER=1.16 GHCVER=7.0.1
+ - CABALVER=1.16 GHCVER=7.0.2
+ - CABALVER=1.16 GHCVER=7.0.3
+ - CABALVER=1.16 GHCVER=7.0.4
+ - CABALVER=1.16 GHCVER=7.2.1
+ - CABALVER=1.16 GHCVER=7.2.2
+ - CABALVER=1.16 GHCVER=7.4.1
+ - CABALVER=1.16 GHCVER=7.4.2
+ - CABALVER=1.16 GHCVER=7.6.1
+ - CABALVER=1.16 GHCVER=7.6.2
+ - CABALVER=1.16 GHCVER=7.6.3
+ - CABALVER=1.18 GHCVER=7.8.1
+ - CABALVER=1.18 GHCVER=7.8.2
+ - CABALVER=1.18 GHCVER=7.8.3
+ - CABALVER=head GHCVER=head
+
+matrix:
+  allow_failures:
+   - env: CABALVER=head GHCVER=head
+
+before_install:
+ - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
+ - travis_retry sudo apt-get update
+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
+ - cabal --version
+ - ghc --version
+
+install:
+ - travis_retry cabal update
+
+script:
+ - autoreconf -i
+ - cabal configure -v2
+ - cabal build
+ - cabal check
+ - cabal sdist
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..dd4dcbc
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+The `old-time` Package  [![Hackage](https://img.shields.io/hackage/v/old-time.svg)](https://hackage.haskell.org/package/old-time) [![Build Status](https://travis-ci.org/haskell/old-time.svg)](https://travis-ci.org/haskell/old-time)
+========================
+
+See [`old-time` on Hackage](http://hackage.haskell.org/package/old-time) for more information.