ersatz-0.3: .travis.yml
language: haskell
env:
- GHCVER=7.8.3
before_install:
- |
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
# Try installing some of the build-deps with apt-get for speed.
- travis/cabal-apt-install $mode
- export PATH=~/.cabal/bin:$PATH
install:
- cabal configure -flib-Werror $mode
- cabal build
script:
- $script
notifications:
irc:
channels:
- "irc.freenode.org#haskell-lens"
skip_join: true
template:
- "\x0313ersatz\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"
env:
- mode="--enable-tests" script="cabal test --show-details=always"