Skip to content

Commit

Permalink
build: set up samples testing (#54)
Browse files Browse the repository at this point in the history
* build: set up samples testings

* edit comments

* cd samples

* change env vars load

* source env vars from secret manager

* source env vars from secret manager

* cleanup

* additional env vars

* detele empty file
  • Loading branch information
anguillanneuf committed Feb 5, 2021
1 parent 2bbd9df commit 4568398
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .kokoro/build.sh
Expand Up @@ -78,6 +78,14 @@ samples)

if [[ -f ${SAMPLES_DIR}/pom.xml ]]
then
# get versions for constructing the full names of the packaged JARs
CONNECTOR_VERSION=$(grep pubsublite-spark-sql-streaming ${scriptDir}/../versions.txt | cut -d: -f3)
SAMPLE_VERSION=$(grep com.google.cloud.samples.shared-configuration: ${scriptDir}/../versions.txt | cut -d: -f3)
if [ -f "${KOKORO_GFILE_DIR}/secret_manager/java-pubsublite-spark-samples-secrets" ]
then
source "${KOKORO_GFILE_DIR}/secret_manager/java-pubsublite-spark-samples-secrets"
fi

pushd ${SAMPLES_DIR}
mvn -B \
-Penable-samples \
Expand Down
3 changes: 2 additions & 1 deletion versions.txt
@@ -1,4 +1,5 @@
# Format:
# module:released-version:current-version

pubsublite-spark-sql-streaming:0.0.0:0.1.0-SNAPSHOT
pubsublite-spark-sql-streaming:0.0.0:0.0.1-SNAPSHOT
com.google.cloud.samples.shared-configuration:1.0.21:1.0.21

0 comments on commit 4568398

Please sign in to comment.