2017-05-28 14:54:23 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
|
2017-05-29 20:31:22 +01:00
|
|
|
echo "Preparing to deploy to nexus..."
|
2017-05-28 17:25:20 +01:00
|
|
|
openssl aes-256-cbc -K $encrypted_efec3258f55d_key -iv $encrypted_efec3258f55d_iv \
|
2017-05-28 14:54:23 +01:00
|
|
|
-in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d
|
2017-05-29 20:31:22 +01:00
|
|
|
echo "Signing key decrypted"
|
2017-05-28 17:38:59 +01:00
|
|
|
gpg --batch --fast-import travis-ci/codesigning.asc
|
2017-05-29 20:31:22 +01:00
|
|
|
echo "Signing key imported"
|
2017-05-28 16:29:56 +01:00
|
|
|
./mvnw --projects plugin,ruleset --settings travis-ci/travis-settings.xml \
|
|
|
|
-Dskip-Tests=true -P release -B deploy
|
2017-05-29 20:31:22 +01:00
|
|
|
echo "Deploy complete"
|
|
|
|
else
|
|
|
|
echo "Not deploying"
|
|
|
|
echo " TRAVIS_BRANCH: $TRAVIS_BRANCH"
|
|
|
|
echo " TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
|
2017-05-28 14:54:23 +01:00
|
|
|
fi
|
|
|
|
|