From 6766acbd7f2e498de660711a5d8d2f2d10f94b31 Mon Sep 17 00:00:00 2001 From: Marco Ziccardi Date: Mon, 5 Oct 2015 16:06:33 +0200 Subject: [PATCH] Move decrypting to after_success.sh (no pull requests) --- .travis.yml | 4 ---- utilities/after_success.sh | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5f3436a394b..796ba78e08b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,6 @@ jdk: before_install: - mvn clean - git clone -b travis `git config --get remote.origin.url` target/travis -- 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 - cp target/travis/settings.xml ~/.m2/settings.xml install: mvn install -DskipTests=true -Dgpg.skip=true script: mvn verify diff --git a/utilities/after_success.sh b/utilities/after_success.sh index 8752c071583d..600d214958f5 100755 --- a/utilities/after_success.sh +++ b/utilities/after_success.sh @@ -11,6 +11,12 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" - 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 + # Get signing tools + 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 + # Deploy site if not a SNAPSHOT git config --global user.name "travis-ci" git config --global user.email "travis@travis-ci.org"