This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from elfenlaid/7.8.2-update
Fix build dependencies
- Loading branch information
Showing
3 changed files
with
46 additions
and
14 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,6 +1,38 @@ | ||
language: haskell | ||
ghc: | ||
- 7.6 | ||
- 7.8 | ||
script: | ||
- cabal install --dependencies-only && cabal build | ||
|
||
env: | ||
- GHCVER=7.6.3 | ||
- GHCVER=7.8.2 | ||
- GHCVER=7.8.3 | ||
|
||
before_install: | ||
# If $GHCVER is the one travis has, don't bother reinstalling it. | ||
# We can also have faster builds by installing some libraries with | ||
# `apt`. If it isn't, install the GHC we want from hvr's PPA along | ||
# with cabal-1.18. | ||
- | | ||
if [ $GHCVER = `ghc --numeric-version` ]; then | ||
# Try installing some of the build-deps with apt-get for speed. | ||
travis/cabal-apt-install --enable-tests $MODE | ||
export CABAL=cabal | ||
else | ||
# Install the GHC we want from hvr's PPA | ||
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.18 ghc-$GHCVER happy | ||
export CABAL=cabal-1.18 | ||
export PATH=/opt/ghc/$GHCVER/bin:$PATH | ||
fi | ||
# Uncomment whenever hackage is down. | ||
# - mkdir -p ~/.cabal && cp travis/config ~/.cabal/config && $CABAL update | ||
- $CABAL update | ||
|
||
# Update happy when building with GHC head | ||
- | | ||
if [ $GHCVER = "7.8.3" ] || [ $GHCVER = "7.8.2" ]; then | ||
$CABAL install happy alex | ||
export PATH=$HOME/.cabal/bin:$PATH | ||
fi | ||
install: | ||
- $CABAL install --dependencies-only --enable-tests && $CABAL build |
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
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