Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom profile #8

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ But a bit more, to ensure that the tests run as the `postgres` user, and if
tests fail to emit the contents of the `regression.diffs` file. Designed to
cover the most common PostgreSQL extension build-and-test patterns.

By default, `pg-build-test` uses builds with `PROFILE=--Werror`; Specify an
alternate `$PROFILE` environment variable to override it:

``` sh
export PROFILE=--Wall
pg-build-test
```

### [`pgxn-bundle`]

``` sh
Expand Down
6 changes: 5 additions & 1 deletion bin/pg-build-test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

set -eux

make all PROFILE="-Werror"
# set PROFILE to a default of -Werror, otherwise use the passed in value. Note
# the double dash is intentional.
export PROFILE="${PROFILE:--Werror}"

make all
sudo make install
status=0
make installcheck PGUSER=postgres || status=$?
Expand Down