git.iko.soy/typeable/pandoc
on master help sign in
CI: don't use --test-option with older cabal versions (< 3).
commitdd56822006aa17287b8003015ec62fa215c00b27 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 28 Feb 2021, 16:01 (6 years ago) parent3645607
1 file changed+2−1
.github/workflows/ci.yml+2−1
.github/workflows/ci.yml+2−1
@@ -95,10 +95,11 @@ jobs:
9595 - name: Build and test
9696 run: |
9797 v2=$([ "${{ matrix.versions.cabal }}" = "2.2" ] && printf 'new' || printf 'v2')
98+ testopts=$([ "${{ matrix.versions.cabal }}" != "2.2" ] && [ "${{ matrix.versions.cabal }}" != "2.4" ] && printf '--test-option=--hide-successes')
9899 cabal $v2-build --enable-tests --disable-optimization 2>&1 | tee build.log
99100 # fail if warnings in local build
100101 ! grep -q ": *[Ww]arning:" build.log || exit 1
101− cabal $v2-test --disable-optimization --test-option=--hide-successes
102+ cabal $v2-test --disable-optimization $testopts
102103
103104 windows:
104105