packages feed

hackmanager-0.1.0.0: templates/travis-cabal.mustache

language: haskell
env:
{{#tc_project.pi_ghcVersions}}
- GHCVER={{.}}
{{/tc_project.pi_ghcVersions}}
- GHCVER=head
matrix:
  allow_failures:
  - 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
- |
  $CABAL install happy alex
  export PATH=$HOME/.cabal/bin:$PATH
install:
- $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
deploy:
  provider: hackage
  username: AlexanderThiemann
  skip_cleanup: true
  on:
    condition: "$GHCVER = {{tc_opts.to_ghcRelease}}"
    tags: true