Use conditions to isolate deploy
@@ -11,24 +11,29 @@ jdk:
matrix:
include:
#Default
- - name: "Acceptance Tests Java 11"
+ - if: NOT branch = deploy_once AND type = push
+ name: "Acceptance Tests Java 11"
env:
- TEST_PROFILE="reduce-logging"
jdk: oraclejdk11
- - name: "Acceptance Tests Java 8"
+ - if: NOT branch = deploy_once AND type = push
+ name: "Acceptance Tests Java 8"
env:
- TEST_PROFILE="reduce-logging"
jdk: oraclejdk8
#GRPC
- - name: "GRPC Only Acceptance Tests"
+ - if: NOT branch = deploy_once AND type = push
+ name: "GRPC Only Acceptance Tests"
env:
- TEST_PROFILE="grpc-acceptance-tests,reduce-logging"
#Simple
- - name: "Simple Only Acceptance Tests"
+ - if: NOT branch = deploy_once AND type = push
+ name: "Simple Only Acceptance Tests"
env:
- TEST_PROFILE="simple-acceptance-tests,reduce-logging"
#Vault
- - name: "Vault Acceptance Tests Java 8"
+ - if: NOT branch = deploy_once AND type = push
+ name: "Vault Acceptance Tests Java 8"
env:
- TEST_PROFILE="vault-acceptance-tests,reduce-logging"
jdk: oraclejdk8
@@ -38,7 +43,8 @@ matrix:
- unzip /tmp/vault_1.0.1_linux_amd64.zip
- export PATH=$PATH:$PWD && popd
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- - name: "Vault Acceptance Tests Java 11"
+ - if: NOT branch = deploy_once AND type = push
+ name: "Vault Acceptance Tests Java 11"
env:
- TEST_PROFILE="vault-acceptance-tests,reduce-logging"
jdk: oraclejdk11
@@ -48,7 +54,9 @@ matrix:
- unzip /tmp/vault_1.0.1_linux_amd64.zip
- export PATH=$PATH:$PWD && popd
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
-
+ - if: branch = deploy_once AND type = push
+ name: "Deploy to central"
+ script: echo "deploy"
sudo: enabled
