From a38c82d897ce795345256edc140d72e6b5b42167 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 21 Jul 2017 22:07:05 +0100 Subject: [PATCH] .travis-support: added --- .gitmodules | 3 ++ .travis-support | 1 + .travis.yml | 2 +- ...codesigning.asc.enc => codesigning.asc.enc | Bin travis-ci/travis-deploy.sh | 12 -------- travis-ci/travis-settings.xml | 28 ------------------ 6 files changed, 5 insertions(+), 41 deletions(-) create mode 100644 .gitmodules create mode 160000 .travis-support rename travis-ci/codesigning.asc.enc => codesigning.asc.enc (100%) delete mode 100644 travis-ci/travis-deploy.sh delete mode 100644 travis-ci/travis-settings.xml diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..bd45c77 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".travis-support"] + path = .travis-support + url = git@github.com:kemitix/kemitix-travis-support.git diff --git a/.travis-support b/.travis-support new file mode 160000 index 0000000..1e1bc4e --- /dev/null +++ b/.travis-support @@ -0,0 +1 @@ +Subproject commit 1e1bc4ebcb290bba6e56dcfbe2afbe8b9b785a98 diff --git a/.travis.yml b/.travis.yml index cfa27dd..6982e71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ install: true script: "./mvnw clean install" deploy: provider: script - script: sh travis-ci/travis-deploy.sh + script: sh .travis-support/deploy.sh on: branch: master env: diff --git a/travis-ci/codesigning.asc.enc b/codesigning.asc.enc similarity index 100% rename from travis-ci/codesigning.asc.enc rename to codesigning.asc.enc diff --git a/travis-ci/travis-deploy.sh b/travis-ci/travis-deploy.sh deleted file mode 100644 index b68fd67..0000000 --- a/travis-ci/travis-deploy.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -echo "Preparing to deploy to nexus..." -openssl aes-256-cbc -K $encrypted_f424d6efdd6f_key -iv $encrypted_f424d6efdd6f_iv \ - -in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d -echo "Signing key decrypted" -gpg --batch --fast-import travis-ci/codesigning.asc -echo "Signing key imported" -./mvnw --settings travis-ci/travis-settings.xml \ - -Dskip-Tests=true -P release -B deploy -echo "Deploy complete" - diff --git a/travis-ci/travis-settings.xml b/travis-ci/travis-settings.xml deleted file mode 100644 index e2d8c63..0000000 --- a/travis-ci/travis-settings.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - sonatype-nexus-snapshots - kemitix - ${env.CI_DEPLOY_PASSWORD} - - - sonatype-nexus-staging - kemitix - ${env.CI_DEPLOY_PASSWORD} - - - - - gpg-sign - - true - - - gpg - ${env.CI_DEPLOY_GPG_KEYNAME} - ${env.CI_DEPLOY_GPG_PASSPHRASE} - - - -