on master help sign in
Add coverage build to travis.
47766ebPranay Sashank
.github/workflows/haskell.yml+3−2
@@ -28,6 +28,7 @@ jobs:
28 BUILD: ${{ matrix.build }}
28 BUILD: ${{ matrix.build }}
29 GHCVER: ${{ matrix.ghc_version }}
29 GHCVER: ${{ matrix.ghc_version }}
30 CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
30 CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
31+ CABAL_PROJECT: ${{ matrix.cabal_project }}
31 DISABLE_DOCS: ${{ matrix.disable_docs }}
32 DISABLE_DOCS: ${{ matrix.disable_docs }}
32
33
33 runs-on: ubuntu-latest
34 runs-on: ubuntu-latest
@@ -40,11 +41,11 @@ jobs:
40 - name: 8.10.1+inspection+Werror
41 - name: 8.10.1+inspection+Werror
41 ghc_version: 8.10.1
42 ghc_version: 8.10.1
42 build: cabal-v2
43 build: cabal-v2
43− cabal_build_options: "--project-file=cabal.project.ci"
44+ cabal_project: cabal.project.ci
44 - name: 8.8.3+inspection+Werror
45 - name: 8.8.3+inspection+Werror
45 ghc_version: 8.8.3
46 ghc_version: 8.8.3
46 build: cabal-v2
47 build: cabal-v2
47− cabal_build_options: "--project-file=cabal.project.ci"
48+ cabal_project: cabal.project.ci
48 - name: 8.6.5+streamk
49 - name: 8.6.5+streamk
49 ghc_version: 8.6.5
50 ghc_version: 8.6.5
50 build: cabal-v2
51 build: cabal-v2
.packcheck.ignorenew file+2
@@ -0,0 +1,2 @@
1+.packcheck.ignore
2+cabal.project.coverage
.travis.yml+3−2
@@ -207,8 +207,9 @@ matrix:
207 # and then you can use any version of ghc.
207 # and then you can use any version of ghc.
208 # --------------------------------------------------------------------------
208 # --------------------------------------------------------------------------
209
209
210+ - name: "GHC 8.10.1+inspection+Werror+coverage"
210− #- env: BUILD=cabal-v1 COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines --exclude-dir=test test"
211+ env: BUILD=cabal-v2 COVERALLS_OPTIONS=" --repo-token=\"$REPO_TOKEN\" --coverage-mode=StrictlyFullLines --exclude-dir=test" CABAL_PROJECT="cabal.project.coverage" GHC_OPTIONS=""
211− # addons: {apt: {packages: [cabal-install-2.4,ghc-8.2.2], sources: [hvr-ghc]}}
212+ addons: {apt: {packages: [cabal-install-3.2,ghc-8.10.1], sources: [hvr-ghc]}}
212
213
213 # --------------------------------------------------------------------------
214 # --------------------------------------------------------------------------
214 # Builds that are allowed to fail
215 # Builds that are allowed to fail
cabal.project.coveragenew file+19
@@ -0,0 +1,19 @@
1+packages:
2+ ./
3+
4+source-repository-package
5+ type: git
6+ location: https://github.com/composewell/hpc-coveralls
7+ tag: d05f0c68aabec6120f8a96a9b5181b21a8f364df
8+
9+package hpc-coveralls
10+ tests: false
11+
12+package streamly
13+ ghc-options: -Werror
14+ flags: inspection
15+ coverage: true
16+
17+package streamly-benchmarks
18+ ghc-options: -Werror
19+ flags: inspection