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 #2 from ndmitchell/master
Allow working with GHC HEAD
- Loading branch information
Showing
4 changed files
with
109 additions
and
86 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,31 @@ | ||
env: | ||
- GHCVER=7.0.4 | ||
- GHCVER=7.2.2 | ||
- GHCVER=7.4.2 | ||
- GHCVER=7.6.3 | ||
- GHCVER=7.8.3 | ||
- GHCVER=head | ||
|
||
before_install: | ||
- sudo add-apt-repository -y ppa:hvr/ghc | ||
- sudo apt-get update | ||
- sudo apt-get install cabal-install-head ghc-$GHCVER | ||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/head/bin:$PATH | ||
|
||
install: | ||
- cabal update | ||
- cabal install --depend | ||
- ghc --version | ||
|
||
script: | ||
- cabal configure -v2 | ||
- cabal build | ||
- cabal sdist | ||
- 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 |
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
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