diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c50d110 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".travis-support"] + path = .travis-support + url = https://github.com/kemitix/kemitix-travis-support.git diff --git a/.travis-support b/.travis-support new file mode 160000 index 0000000..b8593e5 --- /dev/null +++ b/.travis-support @@ -0,0 +1 @@ +Subproject commit b8593e541ba9a11447fa9559a83e5f99097ca4d2 diff --git a/.travis.yml b/.travis.yml index d43d3d8..0d1d54a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,12 @@ cache: install: true script: "./mvnw clean install" after_success: -- "./travis-ci/travis-coveralls-report.sh" +- sh .travis-support/coveralls.sh - bash <(curl -s https://codecov.io/bash) -- "./travis-ci/travis-deploy.sh" +deploy: + provider: script + script: sh .travis-support/deploy.sh + on: + branch: master env: global: - - secure: Aq+1PsvZoRPi4/yvKfF9b7PFPb6BGwjBKwva3nJznT7yDO7H2QjpZEs8csvnobdNf5zCdSJGifcxhQjKpwD1YF5Y3Szw9bSFBE0UsNmuJY0Ls92fqSwEJmfs81gEs2VLgdXTP1jt4t2hzjyY77C1t3wQYjLebZ25tza2N6cl8xQDL9uq35kdgfE3oy/Alws7Kgf2rO7N5BibKTIau0a4qcRJIIOK/2/8hhCt/9ER9SgDwwmNeicfDQ9afau90ONqoKszhIiiOY3m2ml8UiZTCATTYr8FsiEd704sMWiWiwXoH1gCII8YZAvBv7gh2ZY6PC/BOaaqXpA3BULOFX2ROtauLFnFJANXUL7lHaclzXMjf/hLQBWgFeYomud1f7zaN4uS2ow+PdgMGeeh8qAv9Iri5u6+hS3sm4XPyIkFK9mlnLLVMDEtZkZZf4+YzyUp0Fxk02ShfBdjTvfWo7A1+RFuR+gy5lIYpqhof1AHEKiINFvs7mgmQarvNVbm+qT19vHwhvE5umovWw+k1vykO3/ulzE6u36aeNGpqCzEXmDRbxzmigDsQA0hMuiiaLcS7uh2YrSkG8N96Pd07U0DqiaCrTB7zqaBmCfMl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h1spT6WzGFw8HqypmvfLt2+DQtUOKFlJz76Q8w+GpwJCtzbXNd6KHqIeL3o3Tq48FViB06aN4NceaFyj3POM+QEkozNao+DguKVaB5gzOFmPTC8QCf8U/2HRfyw2/2tAgK27loaolXumCg/yfvr0vPsX6B3dAAC2gbWemaiZxkue/Wivkx+3dRJvutcHBs/dkhvxL6nkOW4rY79dHcnl33Lmyf5UWkkoNkrcT4r+1eXYB5nRAkAnwVK8xlpMVTQNB6b2TXnrvqhoi2wTbWNyu0rSTDifgY1NTYGqA0w5hlZtUi7xqxa/i8qBvOJXX4wrvCL8JCDEvzzqJ4MJ6Ajwi67TVPjf8vb8nMW1hETDeuJ20jY= diff --git a/codesigning.asc.enc b/codesigning.asc.enc new file mode 100644 index 0000000..7869c2d Binary files /dev/null and b/codesigning.asc.enc differ diff --git a/travis-ci/codesigning.asc.enc b/travis-ci/codesigning.asc.enc deleted file mode 100644 index 5b3501d..0000000 Binary files a/travis-ci/codesigning.asc.enc and /dev/null differ diff --git a/travis-ci/travis-coveralls-report.sh b/travis-ci/travis-coveralls-report.sh deleted file mode 100755 index aab1704..0000000 --- a/travis-ci/travis-coveralls-report.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -./mvnw --projects builder,plugin test jacoco:report coveralls:report diff --git a/travis-ci/travis-deploy.sh b/travis-ci/travis-deploy.sh deleted file mode 100755 index d5f7775..0000000 --- a/travis-ci/travis-deploy.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then - echo "Preparing to deploy to nexus..." - openssl aes-256-cbc -K $encrypted_efec3258f55d_key -iv $encrypted_efec3258f55d_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 --projects .,plugin,ruleset --settings travis-ci/travis-settings.xml \ - -Dskip-Tests=true -P release -B deploy - echo "Deploy complete" -else - echo "Not deploying" - echo " TRAVIS_BRANCH: $TRAVIS_BRANCH" - echo " TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST" -fi - 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} - - - -