Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean before deploying #263

Merged
merged 3 commits into from
Oct 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utilities/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -

cd ..
utilities/update_docs_version.sh # Update version in READMEs
mvn deploy -DskipTests=true --settings target/travis/settings.xml -P sign-deploy
mvn clean deploy --settings ~/.m2/settings.xml -P sign-deploy
else
mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml
mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~/.m2/settings.xml
fi
else
echo "Not deploying artifacts. This is only done with non-pull-request commits to master branch with Oracle Java 7 builds."
Expand Down
10 changes: 5 additions & 5 deletions utilities/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

if [ "${TRAVIS_BRANCH}" == "master" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then
# 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 target/travis/signing-tools.tar -d
mkdir target/travis/signing-tools
chmod 700 target/travis/signing-tools
tar xvf target/travis/signing-tools.tar -C target/travis/signing-tools
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
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/target/travis/signing-tools/gcloud-devel-travis.json
export GCLOUD_TESTS_KEY=$TRAVIS_BUILD_DIR/signing-tools/gcloud-devel-travis.json
# Run verify
mvn verify
else
Expand Down