Do not encrypt the deployment key for a PR
Do not encrypt the deployment key for a PR
@@ -5,8 +5,7 @@ jdk:
- oraclejdk8
- openjdk8
before_install:
-- openssl aes-256-cbc -K $encrypted_d472159ded8f_key -iv $encrypted_d472159ded8f_iv
- -in .travis/keyrings/deploy_key.pem.enc -out .travis/keyrings/deploy_key.pem -d
+- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_d472159ded8f_key -iv $encrypted_d472159ded8f_iv -in .travis/keyrings/deploy_key.pem.enc -out .travis/keyrings/deploy_key.pem -d; fi'
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/target
- echo "MAVEN_OPTS='-Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom'" > ~/.mavenrc
install:
