From e52ef4f2b5a912510557ac8ba2f2e6fddbfa6cd4 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 8 Dec 2022 22:57:46 -0800 Subject: [PATCH] Added prove_installcheck for Windows --- .github/workflows/build.yml | 3 +++ Makefile.win | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 517ca8b..1cd2582 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ on: [push, pull_request] jobs: ubuntu: runs-on: ubuntu-latest + if: ${{ !startsWith(github.ref_name, 'windows') }} strategy: fail-fast: false matrix: @@ -26,6 +27,7 @@ jobs: make prove_installcheck mac: runs-on: macos-latest + if: ${{ !startsWith(github.ref_name, 'windows') }} steps: - uses: actions/checkout@v3 - uses: ankane/setup-postgres@v1 @@ -54,4 +56,5 @@ jobs: nmake /NOLOGO /F Makefile.win nmake /NOLOGO /F Makefile.win install nmake /NOLOGO /F Makefile.win installcheck + nmake /NOLOGO /F Makefile.win prove_installcheck PROVE=prove shell: cmd diff --git a/Makefile.win b/Makefile.win index 107f6c9..b473714 100644 --- a/Makefile.win +++ b/Makefile.win @@ -54,3 +54,7 @@ install: installcheck: "$(BINDIR)\pg_regress" --bindir="$(BINDIR)" $(REGRESS_OPTS) $(REGRESS) + +prove_installcheck: + rm -rf tmp_check + PGPORT=65432 PG_REGRESS="$(BINDIR)\pg_regress" $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) test/t/*.pl