Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Magnus Therning <magnus@therning.org>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# must not use `language: haskell` here, since we want to handle the ghc | ||
# versions manually | ||
language: c | ||
|
||
# See also https://github.com/hvr/multi-ghc-travis for more information | ||
|
||
env: | ||
- CABALVER=1.22 GHCVER=7.10.1 | ||
# - 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 | ||
|
||
install: | ||
- cabal --version | ||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" | ||
- travis_retry cabal update | ||
- cabal install --only-dependencies --enable-tests | ||
|
||
script: | ||
- cabal configure --enable-tests -v2 | ||
- cabal build | ||
- cabal test | ||
- cabal check | ||
|
||
# check that a generated source-distribution can be built & installed | ||
- cabal sdist | ||
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && | ||
(cd dist && cabal install --force-reinstalls "$SRC_TGZ") |