packages feed

hackmanager-0.1.0.0: templates/travis-stack.mustache

# NB: don't set `language: haskell` here

sudo: false

matrix:
  include:
  {{#tc_project.pi_ghcVersions}}
  - env: GHCVER={{.}} STACK_YAML=stack.yaml
    addons:
      apt:
        sources:
        - hvr-ghc
        packages:
        - ghc-{{.}}
  {{/tc_project.pi_ghcVersions}}

before_install:
  # ghc
  - export PATH=/opt/ghc/$GHCVER/bin:$PATH
  # stack
  - mkdir -p ~/.local/bin
  - export PATH=~/.local/bin:$PATH
  - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.2.0/stack-0.1.2.0-x86_64-linux.gz | gunzip > ~/.local/bin/stack
  - chmod a+x ~/.local/bin/stack
  # versions
  - stack +RTS -N1 -RTS --version
  - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"

install:
  - ./travis_long stack +RTS -N1 -RTS --no-terminal --skip-ghc-check setup
  - ./travis_long stack +RTS -N1 -RTS --no-terminal --skip-ghc-check test --only-snapshot

script:
  - stack +RTS -N2 -RTS --no-terminal --skip-ghc-check test

cache:
  directories:
  - $HOME/.stack

deploy:
  provider: hackage
  username: AlexanderThiemann
  skip_cleanup: true
  on:
    condition: "$GHCVER = {{tc_opts.to_ghcRelease}}"
    tags: true