Skip to content

Commit

Permalink
Merge pull request #623 from Anton-Latukha/upd-Travis-04
Browse files Browse the repository at this point in the history
CI: Travis: enable testing sdist and strict build as high as possible
  • Loading branch information
Anton-Latukha authored Jun 12, 2020
2 parents c89199f + e865d1c commit 207b6e1
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ git:
# when a new commit has been pushed to a branch before the CI
# platform started cloning the intended commit."

# NOTE: {os} x {jobs} - {exclude} = {build matrix}
os:
- linux
- osx

# 2020-05-26: NOTE: Currently newest Travis dist Ubuntu 18.04 bionic
dist: bionic

# # 2020-05-26: NOTE: Currently newest macOS image
# osx_image: xcode11.4 # NOTE: Official Nix installer fails spectacularly on it.

Expand Down Expand Up @@ -70,7 +62,7 @@ env:
# NOTE: Build a source distribution tarball instead of using the source files directly. The effect is that the package is built as if it were published on hackage. This can be used as a test for the source distribution, assuming the build fails when packaging mistakes are in the cabal file.
- buildFromSdist=false
# NOTE: Build the package in a strict way to uncover potential problems. This includes buildFromSdist and failOnAllWarnings.
# 2020-05-26: NOTE: Currently HNix not able to pass Strict
# 2020-05-26: NOTE: Currently HNix not able to pass Strict on GHC 8.8.3 due to MonalFail migration
- buildStrictly=false
# NOTE: Disable core optimizations, significantly speeds up the build
- disableOptimization=true
Expand All @@ -88,16 +80,36 @@ env:
- ghcjsTmpLogFile='/tmp/ghcjsTmpLogFile.log'
# NOTE: Length of the GHCJS log tail (<40000)
- ghcjsLogTailLength=10000
# NOTE: {os} x {jobs} - {exclude} = {build matrix}
jobs:
- GHCVERSION=ghc844
- GHCVERSION=ghc865
- GHCVERSION=ghc883
- GHCVERSION=ghc8101
- GHCVERSION=ghcjs

# 2020-05-25: NOTE: We still yet to build this in `master`
# 2020-05-26: NOTE: Currently newest Travis dist Ubuntu 18.04 bionic
# NOTE: {os} x {jobs} + {jobs:include} - {jobs:exclude} = {build matrix}
jobs:
include:
- name: GHC 8.4.4, Linux
env: GHCVERSION=ghc844
os: linux
dist: bionic
- name: GHC 8.6.5, Linux, Strict
env:
- GHCVERSION=ghc865
- buildStrictly=true
os: linux
dist: bionic
- name: GHC 8.8.3, macOS, SDist
env:
- GHCVERSION=ghc883
- buildFromSdist=true
os: osx
- name: GHC 8.10.1 Linux
env:
- GHCVERSION=ghc8101
os: linux
dist: bionic
- name: GHCJS, Linux
env:
- GHCVERSION=ghcjs
os: linux
dist: bionic
allow_failures:
- env: GHCVERSION=ghcjs
- env: GHCVERSION=ghc8101
Expand Down

0 comments on commit 207b6e1

Please sign in to comment.