-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
32 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 |
---|---|---|
@@ -1,39 +1,43 @@ | ||
language: haskell | ||
|
||
env: | ||
- GHCVER=7.6.3 | ||
- GHCVER=7.8.3 | ||
- GHCVER=7.10.1 | ||
- GHCVER=head | ||
|
||
- GHCVER=7.6.3 | ||
- GHCVER=7.8.3 | ||
- GHCVER=7.10.1 | ||
- GHCVER=head | ||
matrix: | ||
allow_failures: | ||
- env: GHCVER=head | ||
|
||
- env: GHCVER=head | ||
before_install: | ||
- | | ||
if [ $GHCVER = `ghc --numeric-version` ]; then | ||
travis/cabal-apt-install --enable-tests $MODE | ||
export CABAL=cabal | ||
else | ||
travis_retry sudo add-apt-repository -y ppa:hvr/ghc | ||
travis_retry sudo apt-get update | ||
travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER happy | ||
export CABAL=cabal-1.22 | ||
export PATH=/opt/ghc/$GHCVER/bin:$PATH | ||
fi | ||
- $CABAL update | ||
- | | ||
if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ] || [ $GHCVER = "7.10.1" ]; then | ||
$CABAL install happy alex | ||
export PATH=$HOME/.cabal/bin:$PATH | ||
fi | ||
- | | ||
if [ $GHCVER = `ghc --numeric-version` ]; then | ||
travis/cabal-apt-install --enable-tests $MODE | ||
export CABAL=cabal | ||
else | ||
travis_retry sudo add-apt-repository -y ppa:hvr/ghc | ||
travis_retry sudo apt-get update | ||
travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER happy | ||
export CABAL=cabal-1.22 | ||
export PATH=/opt/ghc/$GHCVER/bin:$PATH | ||
fi | ||
- $CABAL update | ||
- | | ||
if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ] || [ $GHCVER = "7.10.1" ]; then | ||
$CABAL install happy alex | ||
export PATH=$HOME/.cabal/bin:$PATH | ||
fi | ||
install: | ||
- $CABAL install --dependencies-only --enable-tests | ||
- $CABAL configure -flib-Werror --enable-tests $MODE | ||
|
||
- $CABAL install --dependencies-only --enable-tests | ||
- $CABAL configure -flib-Werror --enable-tests $MODE | ||
script: | ||
- ghc --numeric-version | ||
- $CABAL check | ||
- $CABAL build | ||
- $CABAL test --show-details=always | ||
- ghc --numeric-version | ||
- $CABAL check | ||
- $CABAL build | ||
- $CABAL test --show-details=always | ||
deploy: | ||
provider: hackage | ||
username: AlexanderThiemann | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
password: | ||
secure: IX4eMDPtSCbNl/3yJpRsvgCsJ5KanCdyENqxQCxoVwe1cv1zK5lcqy2fwlJmFdCXPSuhxlWq9YIbmaOjPS316aGjMfNx+zw/+BQAyKvHU2HPXjAfUZElaVr4fHafL8s2QC/w3TkxjqrA1mGi9qKwX8iSFsxGccif62BmEGB7fQ8= |