travis: enable deploy to nexus

This commit is contained in:
Paul Campbell 2017-05-28 20:32:53 +01:00
parent 4372942927
commit 8a5e0badb0
5 changed files with 52 additions and 2 deletions

View file

@ -1,3 +1,15 @@
language: java
jdk:
- oraclejdk8
cache:
directories:
- "$HOME/.m2"
install: true
script: "./mvnw clean install"
after_success:
- "./travis-ci/travis-deploy.sh"
env:
global:
- secure: IZu0VGBsjxwaWGiBh0muZTbxE25aDubsgNGuCp/6tHRtOA73tIwLOeeINJd4iblMvLFg6SrVW7wMhO2N12Pxt5v/czjt3q+t34faXlKP9NK4DjwT2awf96oafVVn3yK0e8S60YwOeSzutF0pEMhGa2nQCmEsAyTcbuavBABeXPKP9QwO9ByywFLZIsbg2uwU1JJALQeyHgYl8DVag2UdVUBfQ2TBB3VaCcwiDOmd/V7Ks2BtzGE4mGDJOWiBrOsANlKwYMhHqcgzH29KeiDvNs8JU8YfizCeQA4mOAUut5A+u+2dXeqdrqL9Nch618tFb73ty4l/rlInmIXRnuV/JvWR8ZnX2N1ngJGe3GOCnA+oSHDDkdW4aRKvcrs8hnKmSew/OV9+locRvYIOO3tJq4A2Rc0izF5jSn+i+yUJpaZlpKiuNSNs0eRTtUggUAQn61c+1In4aWSofsMpObD/KD7K/N5oi71cznxHFHl98QAFlHRza1siYVPAvtINbG04ijChYPFSH527+2XMbis4BhyqoCYH7+xa4qsLriOVuvodomQCaB+5lIiiDYC/N7zesz167Dgv/Gdxfk8NxKjr8XO0dPI3303SspQi2aR9EHpvZF7TkABx/7nzxq04V1u4bHT+EBFyT3Cg+SFiAv3MAbYal2SuzNSAGoRShTySnEs=
- secure: pJLKI3vrSxoD8eHFL4dRJOvn0kjCBk6iQkeRtUVQe9hoE+zyzqlLPG2Gy13qNCRnmx3B3HDPPnGWeUbeyXNHB5TtjXdoYkqUREgwNsV0d4MxvWf2AX52WmhoQylYj1sZEQPPcG1+3+C383PbmoFXg+9nFoevJuhLQGsn5jt8R9Lzk1LPNua1O+v7VThq5HuI5dr32PskQYO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NqIYutfqqyhcqI1ftn3m6fPDbpkdQcCbdhMq1ebCo6veq52onjzAbA2OV1sWc24zzjLVq0RV/hHCz9smaKM5fIwvbDk/JfOAs=

View file

@ -17,9 +17,9 @@
</issueManagement>
<scm>
<url>https://github.com/kemitix/kemitix-parent</url>
<connection>scm:git:git@github.com:kemitix/kemitix-parent.git</connection>
<developerConnection>scm:git:git@github.com:kemitix/kemitix-parent.git</developerConnection>
<url>git@github.com:kemitix/kemitix-parent.git</url>
</scm>
<url>https://github.com/kemitix/kemitix-parent</url>

Binary file not shown.

10
travis-ci/travis-deploy.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
openssl aes-256-cbc -K $encrypted_f424d6efdd6f_key -iv $encrypted_f424d6efdd6f_iv \
-in travis-ci/codesigning.asc.enc -out travis-ci/codesigning.asc -d
gpg --batch --fast-import travis-ci/codesigning.asc
./mvnw --settings travis-ci/travis-settings.xml \
-Dskip-Tests=true -P release -B deploy
fi

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>kemitix</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>kemitix</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<id>gpg-sign</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>${env.CI_DEPLOY_GPG_KEYNAME}</gpg.keyname>
<gpg.passphrase>${env.CI_DEPLOY_GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>