This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sis-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 80ff48c8 Update build instruction with the use of environment variable.
80ff48c8 is described below

commit 80ff48c8eeec83be6d47bb7278de8fcb942d7189
Author: Martin Desruisseaux <martin.desruisse...@geomatys.com>
AuthorDate: Wed Feb 21 14:25:05 2024 +0100

    Update build instruction with the use of environment variable.
---
 content/release-management.md |  6 +++---
 content/source.md             | 10 ++++++----
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/content/release-management.md b/content/release-management.md
index 391e7119..fe88f077 100644
--- a/content/release-management.md
+++ b/content/release-management.md
@@ -233,7 +233,8 @@ Then execute the following commands and fix as much 
warnings as practical:
 
 ```bash
 systemctl start postgresql.service        # Optional — exact command depends 
on Linux distribution.
-gradle test --system-prop org.apache.sis.test.extensive=true
+export SIS_TEST_OPTIONS=extensive,postgresql
+gradle test
 ```
 
 If the `SIS_DATA` environment variable was set during above build, unset it a 
try again.
@@ -492,8 +493,7 @@ The `org.apache.sis.releaseVersion` property will cause 
Javadoc to be generated
 ```bash
 cd $SIS_RC_DIR
 git status      # Make sure that everything is clean.
-gradle clean
-gradle test     --system-prop org.apache.sis.test.extensive=true
+gradle clean test
 gradle assemble
 mv --interactive optional/build/bundle/apache-sis-$NEW_VERSION.zip 
$DIST_DIR/apache-sis-$NEW_VERSION-bin.zip
 
diff --git a/content/source.md b/content/source.md
index 341f6945..99cc6d96 100644
--- a/content/source.md
+++ b/content/source.md
@@ -146,7 +146,8 @@ The requirements are:
 * A role with the same name than Unix user name of the developer running tests.
 * An empty database named `"SpatialMetadataTest"`.
 * Above-cited role can connect to `SpatialMetadataTest` database without 
password.
-* `org.apache.sis.test.extensive` Java property set to `true`.
+* `org.apache.sis.test.postgresql` Java property set to `true` or the
+  `SIS_TEST_OPTIONS` environment variable contains `postgresql`.
 
 The `SpatialMetadataTest` database should stay empty when not running tests,
 because Apache {{% SIS %}} always delete the temporary schema after tests 
completion,
@@ -181,9 +182,9 @@ host    SpatialMetadataTest    my_unix_user_name    ::1/128 
        trust
 ```
 
 The last step for allowing Apache {{% SIS %}} to run tests on PostgreSQL is to 
set the
-`org.apache.sis.test.extensive` Java property to `true` (see next section).
+`org.apache.sis.test.postgresql` Java property or the
+`SIS_TEST_OPTIONS` environment variable (see next section).
 This requirement has been added for avoiding undesired interference with host.
-Note that this step is likely to change after Apache {{% SIS %}} upgrade to 
JUnit 5.
 
 
 ## Running extensive tests    {#tests}
@@ -197,7 +198,8 @@ For enabling all tests, use the following command:
 
 ```bash
 cd sis
-gradle test --system-prop org.apache.sis.test.extensive=true
+export SIS_TEST_OPTIONS=extensive,postgresql
+gradle test
 ```
 
 

Reply via email to