Add coverage build to travis.

This commit is contained in:
Pranay Sashank 2020-05-04 20:15:02 +05:30
parent c5696bd4c6
commit 47766eb613
4 changed files with 27 additions and 4 deletions

View File

@ -28,6 +28,7 @@ jobs:
BUILD: ${{ matrix.build }}
GHCVER: ${{ matrix.ghc_version }}
CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
CABAL_PROJECT: ${{ matrix.cabal_project }}
DISABLE_DOCS: ${{ matrix.disable_docs }}
runs-on: ubuntu-latest
@ -40,11 +41,11 @@ jobs:
- name: 8.10.1+inspection+Werror
ghc_version: 8.10.1
build: cabal-v2
cabal_build_options: "--project-file=cabal.project.ci"
cabal_project: cabal.project.ci
- name: 8.8.3+inspection+Werror
ghc_version: 8.8.3
build: cabal-v2
cabal_build_options: "--project-file=cabal.project.ci"
cabal_project: cabal.project.ci
- name: 8.6.5+streamk
ghc_version: 8.6.5
build: cabal-v2

2
.packcheck.ignore Normal file
View File

@ -0,0 +1,2 @@
.packcheck.ignore
cabal.project.coverage

View File

@ -207,8 +207,9 @@ matrix:
# and then you can use any version of ghc.
# --------------------------------------------------------------------------
#- env: BUILD=cabal-v1 COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines --exclude-dir=test test"
# addons: {apt: {packages: [cabal-install-2.4,ghc-8.2.2], sources: [hvr-ghc]}}
- name: "GHC 8.10.1+inspection+Werror+coverage"
env: BUILD=cabal-v2 COVERALLS_OPTIONS=" --repo-token=\"$REPO_TOKEN\" --coverage-mode=StrictlyFullLines --exclude-dir=test" CABAL_PROJECT="cabal.project.coverage" GHC_OPTIONS=""
addons: {apt: {packages: [cabal-install-3.2,ghc-8.10.1], sources: [hvr-ghc]}}
# --------------------------------------------------------------------------
# Builds that are allowed to fail

19
cabal.project.coverage Normal file
View File

@ -0,0 +1,19 @@
packages:
./
source-repository-package
type: git
location: https://github.com/composewell/hpc-coveralls
tag: d05f0c68aabec6120f8a96a9b5181b21a8f364df
package hpc-coveralls
tests: false
package streamly
ghc-options: -Werror
flags: inspection
coverage: true
package streamly-benchmarks
ghc-options: -Werror
flags: inspection