dejafu/.travis.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2016-05-03 21:17:06 +03:00
# Set-up
sudo: false
language: c
2018-02-26 23:53:16 +03:00
# If something is tagged, it's come from a PR which has been merged
# into master. There's no need to build both the tag and the merge
# commit.
if: tag IS blank
2016-05-03 21:17:06 +03:00
# Cache builds
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
2018-05-03 21:24:25 +03:00
addons:
apt:
packages:
- libgmp-dev
env:
global:
2018-07-08 22:00:36 +03:00
- secure: "J8fH1I5Etz1TpB8aZwtbFGp4GDgq5NCevVkthAAPLMMNRM+WYG5hznEq4GnvY0sWyBYhVuEapq31w+Mjx1PjiMaVeipdcd9+fOo/K//jg0BU8Jj9MpFHzHmmiE0HB35Dm8lro7QBPIgX0e59qbK7MScZ4JZTBqL3OS1y3mtxdks="
2018-05-03 21:24:25 +03:00
script: ./.travis/$MODE
2016-05-03 21:17:06 +03:00
2018-05-03 21:24:25 +03:00
jobs:
allow_failures:
- env: MODE=test RESOLVER=nightly
2018-05-03 21:24:25 +03:00
include:
- stage: check
env: MODE=doctest
- env: MODE=lint
2018-05-03 21:24:25 +03:00
- stage: test
env: MODE=test RESOLVER=lts-9.0 # GHC 8.0
- env: MODE=test RESOLVER=lts-10.0 # GHC 8.2
- env: MODE=test RESOLVER=lts-12.0 # GHC 8.4
- env: MODE=test RESOLVER=lts-13.3 # GHC 8.6 - .3 because hedgehog and stylish-haskell aren't in .0
2018-05-03 21:24:25 +03:00
- env: MODE=test RESOLVER=nightly
- stage: predeploy
if: branch=master
env: MODE=predeploy
- stage: deploy
if: branch=master AND type != pull_request
env: MODE=deploy