on master help sign in
Move docspec test to circle-ci
commitb3af2b944568e4a6f9ce092df83e5eca3263347a authorHarendra Kumar <harendra@composewell.com> dateWed 27 Dec 2023, 07:39 (3 years ago) parent6b3a8c4
2 files changed+41−15
.circleci/config.yml+28−2 .github/workflows/haskell.yml+13−13
.circleci/config.yml+28−2
@@ -57,7 +57,7 @@ env: &env
5757 # If you have not committed packcheck.sh in your repo at PACKCHECK
5858 # then it is automatically pulled from this URL.
5959 PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/composewell/packcheck"
60− PACKCHECK_GITHUB_COMMIT: "v0.7.0"
60+ PACKCHECK_GITHUB_COMMIT: "f6cfd7b7a33b4bf6fd63cce6a3fb3d26f5031403"
6161
6262executors:
6363 amd64-executor:
@@ -155,11 +155,35 @@ jobs:
155155 - *preinstall
156156 - run:
157157 environment:
158+ GHCVER: "8.6.5"
159+ CABAL_VERSION: "3.6.2.0"
158160 CABAL_PROJECT: "cabal.project"
159161 DISABLE_SDIST_BUILD: "yes"
160162 CABAL_BUILD_OPTIONS: "--flag debug --flag -opt"
161163 command: |
162− bash -c "$PACKCHECK cabal GHCVER=8.6.5"
164+ bash -c "$PACKCHECK cabal"
165+ - *save
166+ cabal-ghc-9_8_1-docspec:
167+ <<: *env
168+ executor: amd64-executor
169+ steps:
170+ - checkout
171+ - *restore
172+ - *preinstall
173+ - run:
174+ environment:
175+ GHCVER: "9.8.1"
176+ CABAL_VERSION: "3.10.1.0"
177+ CABAL_PROJECT: "cabal.project.doctest"
178+ DISABLE_SDIST_BUILD: "y"
179+ DISABLE_TEST: "y"
180+ DISABLE_BENCH: "y"
181+ DISABLE_DOCS: "y"
182+ ENABLE_DOCSPEC: "y"
183+ DOCSPEC_URL: https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20210111/cabal-docspec-0.0.0.20210111.xz
184+ DOCSPEC_OPTIONS: "--timeout 60 --check-properties --property-variables xs"
185+ command: |
186+ bash -c "$PACKCHECK cabal"
163187 - *save
164188 hlint-trailing-spaces:
165189 <<: *env
@@ -188,5 +212,7 @@ workflows:
188212 jobs:
189213 #- cabal-ghc-8_6_5:
190214 # name: 8.6.5-debug-unoptimized
215+ - cabal-ghc-9_8_1-docspec:
216+ name: ghc-9.8.1-docspec
191217 - hlint-trailing-spaces:
192218 name: hlint and trailing spaces
.github/workflows/haskell.yml+13−13
@@ -69,7 +69,7 @@ jobs:
6969 # The order is important to optimize fail-fast.
7070 name:
7171 - 9.8.1-Werror
72− - 9.8.1-docspec
72+ # - 9.8.1-docspec
7373 # - 8.10.7-coverage
7474
7575 # Note: if cabal.project is not specified benchmarks and tests won't
@@ -103,18 +103,18 @@ jobs:
103103 disable_sdist_build: "y"
104104 cabal_project: cabal.project.Werror
105105 ignore_error: false
106− - name: 9.8.1-docspec
107− ghc_version: 9.8.1
108− runner: ubuntu-latest
109− build: cabal
110− cabal_version: 3.10.1.0
111− cabal_project: cabal.project.doctest
112− disable_test: "y"
113− disable_bench: "y"
114− disable_docs: "y"
115− enable_docspec: "y"
116− disable_sdist_build: "y"
117− ignore_error: false
106+ #- name: 9.8.1-docspec
107+ # ghc_version: 9.8.1
108+ # runner: ubuntu-latest
109+ # build: cabal
110+ # cabal_version: 3.10.1.0
111+ # cabal_project: cabal.project.doctest
112+ # disable_test: "y"
113+ # disable_bench: "y"
114+ # disable_docs: "y"
115+ # enable_docspec: "y"
116+ # disable_sdist_build: "y"
117+ # ignore_error: false
118118 - name: 9.8.1-fusion-inspection
119119 ghc_version: 9.8.1
120120 runner: ubuntu-latest