diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 919b1b5..19670db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -100,9 +100,7 @@ - name: '[POSIX] Test' if: runner.os != 'Windows' env: - COVERAGE: false - # The value doesn't matter as long as it's > 2.087 - FRONTEND: 2.095.0 + COVERAGE: true run: | dub build --compiler=${{ env.DC }} if [[ ${{ matrix.do_test }} == 'true' ]]; then diff --git a/scripts/ci/ci.sh b/scripts/ci/ci.sh index ab8490b..d235b83 100755 --- a/scripts/ci/ci.sh +++ b/scripts/ci/ci.sh @@ -8,24 +8,12 @@ export DMD="$(command -v $DMD)" -if [ "$FRONTEND" \> 2.087.z ]; then - ./build.d -preview=dip1000 -preview=in -w -g -debug -fi - -function clean() { - # Hard reset of the DUB local folder is necessary as some tests - # currently don't properly clean themselves - rm -rf ~/.dub - git clean -dxf -- test -} +./build.d -preview=dip1000 -preview=in -w -g -debug if [ "$COVERAGE" = true ]; then # library-nonet fails to build with coverage (Issue 13742) dub test --compiler=${DC} -b unittest-cov ./build.d -cov - - wget https://codecov.io/bash -O codecov.sh - bash codecov.sh else ./build.d DUB=`pwd`/bin/dub DC=${DC} dub --single ./test/run-unittest.d