Skip to content

Commit

Permalink
Add TravisCI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorman committed Jan 16, 2015
1 parent f185482 commit d48d98d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist/
.*
!.travis.yml
cabal.config
cabal.sandbox.config
examples/*
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: haskell

ghc:
- 7.6
- 7.8

install:
- cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls

notifications:
email: true

script:
- cabal configure --enable-tests --enable-benchmarks
- cabal build
- cabal test
- cabal check
- cabal sdist

# check that the generated source-distribution can be built & installed
- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
cd dist/;
if [ -f "$SRC_TGZ" ]; then
cabal install "$SRC_TGZ";
else
echo "expected '$SRC_TGZ' not found";
exit 1;
fi

0 comments on commit d48d98d

Please sign in to comment.