-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into spi-readonly
- Loading branch information
Showing
97 changed files
with
1,921 additions
and
1,463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,35 @@ | ||
#! /usr/bin/env bash | ||
|
||
# Environment variables: | ||
# PG_MAJOR_VER: The major version of Postgres in which to build/run. E.g. 14, 12, 15 | ||
# DOCKERFILE_ID: The Dockerfile identifier to be built, included in this repo, | ||
# e.g. debian:bullseye or amazon:2 | ||
# CARGO_LOCKED_OPTION: Set to '--locked' to use "cargo --locked", or set to | ||
# blank '' to use "cargo" without "--locked" | ||
|
||
# Examples of running this script in CI (currently Github Actions): | ||
# ./.github/docker/run-docker.sh 14 debian:bullseye | ||
# ./.github/docker/run-docker.sh 12 fedora:36 | ||
|
||
set -x | ||
|
||
PG_MAJOR_VER=$1 | ||
DOCKERFILE_ID=$2 | ||
|
||
echo "Building docker container for PGX using Postgres version $PG_MAJOR_VER in container $DOCKERFILE_ID" | ||
echo "Cargo lock flag set to: '$CARGO_LOCKED_OPTION'" | ||
|
||
docker build \ | ||
--build-arg PG_MAJOR_VER=$PG_MAJOR_VER \ | ||
-t pgx -f ".github/docker/Dockerfile.$DOCKERFILE_ID" . | ||
--build-arg PG_MAJOR_VER="$PG_MAJOR_VER" \ | ||
--build-arg CARGO_LOCKED_OPTION="$CARGO_LOCKED_OPTION" \ | ||
-t pgx \ | ||
-f ".github/docker/Dockerfile.$DOCKERFILE_ID" \ | ||
. | ||
|
||
echo "Running PGX test suite using Postgres version $PG_MAJOR_VER in container $DOCKERFILE_ID" | ||
echo "Running PGX test suite using Postgres version $PG_MAJOR_VER in container $DOCKERFILE_ID with 'cshim'" | ||
|
||
docker run pgx cargo test --no-default-features --features pg$PG_MAJOR_VER --locked | ||
docker run pgx \ | ||
cargo test \ | ||
--no-default-features \ | ||
--features "pg$PG_MAJOR_VER cshim" \ | ||
"$CARGO_LOCKED_OPTION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ target/ | |
cmake*/ | ||
.direnv | ||
pgx-examples/*/target | ||
/bin |
Oops, something went wrong.