Skip to content

Commit

Permalink
Merge pull request #265 from ajkannan/source-it-vars
Browse files Browse the repository at this point in the history
Fix exported variable scope issue
  • Loading branch information
mziccard committed Oct 15, 2015
2 parents 03d2f19 + 35e3f81 commit 06661a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions utilities/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
source ./utilities/integration_test_env.sh

# This script is used by Travis-CI to publish artifacts (binary, sorce and javadoc jars) when releasing snapshots.
# This script is referenced in .travis.yml.
Expand Down
3 changes: 3 additions & 0 deletions utilities/integration_test_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Export test env variables
export GCLOUD_TESTS_PROJECT_ID="gcloud-devel"
export GCLOUD_TESTS_KEY=$TRAVIS_BUILD_DIR/signing-tools/gcloud-devel-travis.json
4 changes: 1 addition & 3 deletions utilities/verify.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
source ./utilities/integration_test_env.sh

# This script is used by Travis-CI to run tests.
# This script is referenced in .travis.yml.
Expand All @@ -9,9 +10,6 @@ if [ "${TRAVIS_BRANCH}" == "master" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; th
mkdir $TRAVIS_BUILD_DIR/signing-tools
chmod 700 $TRAVIS_BUILD_DIR/signing-tools
tar xvf $TRAVIS_BUILD_DIR/signing-tools.tar -C $TRAVIS_BUILD_DIR/signing-tools
# Export test env variables
export GCLOUD_TESTS_PROJECT_ID="gcloud-devel"
export GCLOUD_TESTS_KEY=$TRAVIS_BUILD_DIR/signing-tools/gcloud-devel-travis.json
# Run verify
mvn verify
else
Expand Down

0 comments on commit 06661a9

Please sign in to comment.