Skip to content

Commit

Permalink
Source IT env vars only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Jan 23, 2016
1 parent 0556813 commit bbd3aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utilities/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/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 All @@ -11,6 +10,7 @@ echo "Travis JDK version: " ${TRAVIS_JDK_VERSION}
if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
mvn clean cobertura:cobertura coveralls:report
if [ "${TRAVIS_PULL_REQUEST}" == "false" -a "${TRAVIS_BRANCH}" == "master" ]; then
source ./utilities/integration_test_env.sh
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
# Deploy site if not a SNAPSHOT
Expand Down
3 changes: 1 addition & 2 deletions utilities/verify.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/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.

if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
source ./utilities/integration_test_env.sh
# Get signing tools and API keyfile
openssl aes-256-cbc -K $encrypted_631490ecae8f_key -iv $encrypted_631490ecae8f_iv -in target/travis/signing-tools.tar.enc -out $TRAVIS_BUILD_DIR/signing-tools.tar -d
mkdir $TRAVIS_BUILD_DIR/signing-tools
Expand Down

0 comments on commit bbd3aad

Please sign in to comment.