Skip to content

Instantly share code, notes, and snippets.

@tibbe
Created April 26, 2013 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tibbe/5470453 to your computer and use it in GitHub Desktop.
Save tibbe/5470453 to your computer and use it in GitHub Desktop.
Jenkins build script for Cabal and cabal-install
export GHC=$compiler
cd Cabal
which cabal
[ ! -d .cabal-sandbox ] && cabal sandbox init
cabal clean
cabal install -j --only-dependencies --enable-tests -w $compiler
cabal configure --enable-tests -w $compiler
cabal build
cabal test --test-option='--jxml=$test-suite.junit.xml' --test-option=--plain
cabal sdist
cd ../cabal-install
[ ! -d .cabal-sandbox ] && cabal sandbox init
cabal sandbox add-source ../Cabal
cabal clean
cabal install -j --only-dependencies -w $compiler
cabal configure -w $compiler
cabal build
cabal sdist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment