travis-ci: updated and add encrypted gpg credentials

This commit is contained in:
Paul Campbell 2017-05-28 14:54:23 +01:00
parent 44248dbc46
commit 2706045dfb
7 changed files with 32 additions and 8 deletions

View file

@ -7,8 +7,13 @@ cache:
install: true install: true
script: "./mvnw clean install" script: "./mvnw clean install"
after_success: after_success:
- "./travis-coveralls-report.sh" - "./travis-ci/travis-coveralls-report.sh"
- '[[ $TRAVIS_BRANCH == "master" ]] && ./travis-deploy.sh' - "./travis-ci/travis-deploy.sh"
env: env:
global: global:
secure: jKTenQ9C2eoL+kchzdekj375h4naZ0776hVkuZxcejT2m/dMIKP4X4WXYzIY1U1cPcCgHRk5IgZ3qUCQ74+pGDGjut7uYKmZOu1rZ8m1jvt0jbrmDs4N5mL0EiXKkju6jPKcEK5kgM2QEN0y2aEnDVwNTfdIQaAGcpA0Ib1M15Vlizvso5COnBhRzK7ZXs4DRGIvDbEOHW715pM+xHvNGQPaBxCaT+ofHRROQ+O+g9SGkSM5aHtRFhq3Mw0k1OIxRkF/m8D0O6O8gg7HlRZAMY7SXfccvz+egMPzFam4GjfYzdPfHzMBY46BOB1Mn0Y4V2nS6hYrl4EQRgdlibPbynRZzl4xZIWciOW9jXWC/7sbDApAov7UQzLmdxxvQbE6M9O8YfMnB4GDNjnpa9eqqVPOLr5/beQJ6YRfOz+KT50CiHm7eWPJb9Ye6jbMAXBknl3CqIwkK+z4/gENwH2aPoTnYqWlSdCoSNOVlKz18HcIGVDBMf2N27nSUOdqxPQE7XSlu5GhEG2FSRg0mzvs8n2fqf/qszaHn1b+1pKshgomBU2KyyF/OEXvSXaZxj2GpybwxDTcTKLDkfuWT1nWNXg5ftDWX4e+iPQAbj/l/m2pmbQ0zLsg6MzffYG7vFPkA1rvL9qBbaIDJEEnest8cFe//76B7jSE/1jT/9zc7vE= # CI_DEPLOY_PASSWORD for oss sonatype
- secure: jKTenQ9C2eoL+kchzdekj375h4naZ0776hVkuZxcejT2m/dMIKP4X4WXYzIY1U1cPcCgHRk5IgZ3q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uUVHrDq6R2MHTepl7PtW0+ZyMbFPPlL65sj+RaPQFSWUM4kTbLlI1xH8X6UcU4kYykwqOen7GgSlPpAntRV8yvTHVG5A1yqLAXB7gVOQ9FLDIfad0oC7AcV3MatjrE/fMEp09Wr9q+kFqACeK/nrcs8UzppDX2+9CQSUSAerULHIsDqm4BNw14+TTnowWAMD3mwExSJ1p+F0+/Mkj8eVhndGN5BQEIcsOpJDFKvcosvhmPl9K5oGE6wYpA=
# CI_DEPLOY_GPG_PASSPHRASE
- secure: bcg75qSvg9X1k/ILDj6vuZ36H0eEA9xhvfIbaZ+BBJqfdIpZJheB6c/MD+sAbeU2gYgH6afbmOHct/PG5BnL/C7WHyASKEDT1Qe0svVfDDME0YyZYj7nPWdu8QjtefsuP7YTddeW0pDz58fNIz/V1JvsIend4zUqL9FrRQ0hkLGUgqrpgh/0X6MGVTC0JBOIhd2iylkkL+M2CV/KunIzF0ZbII9oWu0AnHeh+iVbZ3iR4BaSRUNuxmwLadXyb8fGP1ku+JwpEmseqwCbBABDwKfFbh3N9m3udZaBU5ukmfaeBu3qb7l9j9MSjhiFxT66K64QI1NGrMZ58jQLousjIKV2AtTc4MFbQJnxO4uQISgss6e6V4U81SZ1qAv1KL9v+FIkC/Amo8YFjuWspJKJXaGe0w0QXveB6bo87sSmdRJFwdN94tSBn2KYkeaFADiFh/ZyWStpfYJgzW6ejBnfz863SkNjUX9vCtKcx264Ss+IAatomxUxr1DBQhDvATstURIDCdPeWgRxxwxKXAwR/0tlEhs2PTeNScxlf3ZynkA2AYOTh0I5ZFDz8BZDaYPIUsxbQbiRqN9MaStYCey9KRjd3u+1cF4kqUFHv47mDHr0QXec5dA2qWbQaow9M43FNKnE8y1sKha27O6HO0zOgsxB5K1oK/F2gl6K33H6Cys=

View file

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

Binary file not shown.

View file

View file

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

View file

@ -12,4 +12,17 @@
<password>${env.CI_DEPLOY_PASSWORD}</password> <password>${env.CI_DEPLOY_PASSWORD}</password>
</server> </server>
</servers> </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> </settings>

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
./mvnw --projects plugin,ruleset --settings travis-settings.xml -Dskip-Tests=true -P release -B deploy