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
|
|
|
|
|
2018-07-08 13:37:54 +03:00
|
|
|
env:
|
2018-07-08 21:15:19 +03:00
|
|
|
global:
|
2018-07-08 22:00:36 +03:00
|
|
|
- secure: "J8fH1I5Etz1TpB8aZwtbFGp4GDgq5NCevVkthAAPLMMNRM+WYG5hznEq4GnvY0sWyBYhVuEapq31w+Mjx1PjiMaVeipdcd9+fOo/K//jg0BU8Jj9MpFHzHmmiE0HB35Dm8lro7QBPIgX0e59qbK7MScZ4JZTBqL3OS1y3mtxdks="
|
2018-07-08 13:37:54 +03:00
|
|
|
|
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:
|
2018-11-28 19:19:16 +03:00
|
|
|
allow_failures:
|
|
|
|
- env: MODE=test RESOLVER=nightly
|
2018-05-03 21:24:25 +03:00
|
|
|
include:
|
|
|
|
- stage: check
|
|
|
|
env: MODE=doctest
|
|
|
|
- env: MODE=lint
|
2017-11-20 21:41:51 +03:00
|
|
|
|
2018-05-03 21:24:25 +03:00
|
|
|
- stage: test
|
2018-07-10 00:49:01 +03:00
|
|
|
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
|
2018-12-26 15:55:20 +03:00
|
|
|
- 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
|
2018-07-08 13:21:10 +03:00
|
|
|
|
|
|
|
- stage: predeploy
|
|
|
|
if: branch=master
|
|
|
|
env: MODE=predeploy
|
2018-07-08 13:37:54 +03:00
|
|
|
|
|
|
|
- stage: deploy
|
|
|
|
if: branch=master AND type != pull_request
|
|
|
|
env: MODE=deploy
|