on master help sign in
Add Travis CI
commit1c810d0f542e51097caad407c0e6bfbca46f0727 authorLennart Kolmodin <kolmodin@gmail.com> dateFri 9 Jan 2015, 19:52 (12 years ago) parent1032a97
1 file changed+40
.travis.yml+40
.travis.ymlnew file+40
@@ -0,0 +1,40 @@
1+# NB: don't set `language: haskell` here
2+# See https://github.com/hvr/multi-ghc-travis for more information
3+
4+env:
5+ - CABALVER=1.18 GHCVER=7.4.2
6+ - CABALVER=1.18 GHCVER=7.6.3
7+ - CABALVER=1.18 GHCVER=7.8.3
8+ - CABALVER=1.22 GHCVER=7.10.1
9+
10+before_install:
11+ - sudo add-apt-repository -y ppa:hvr/ghc
12+ - sudo apt-get update
13+ - sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
14+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
15+
16+install:
17+ - cabal update
18+ - cabal sandbox init
19+ - cabal install --only-dependencies --enable-tests --enable-benchmarks
20+
21+script:
22+ - cabal configure --enable-tests --enable-benchmarks -v2
23+ - cabal build
24+ - cabal test
25+ - cabal check
26+ - cabal sdist
27+# check that the generated source-distribution can be built & installed
28+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
29+ cd dist/;
30+ cabal sandbox init;
31+ if [ -f "$SRC_TGZ" ]; then
32+ cabal install --force-reinstalls "$SRC_TGZ";
33+ else
34+ echo "expected '$SRC_TGZ' not found";
35+ exit 1;
36+ fi
37+
38+notifications:
39+ email:
40+ - kolmodin@gmail.com