travis: add support for deploying from Travis CI
This commit is contained in:
parent
7d4e2394e0
commit
f8da2c44a8
4 changed files with 33 additions and 2 deletions
12
.travis.yml
12
.travis.yml
|
@ -1,5 +1,15 @@
|
|||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.m2"
|
||||
install: true
|
||||
script: "./mvnw clean install"
|
||||
after_success:
|
||||
- mvn --projects builder clean test jacoco:report coveralls:report
|
||||
- "./travis-coveralls-report.sh"
|
||||
- '[[ $TRAVIS_BRANCH == "master" ]] && ./travis-deploy.sh'
|
||||
env:
|
||||
global:
|
||||
- secure: oEYDcScGVkJdbQCsgkUTF2JjD6i7fYkSNQPip4QNVKLMIrt8VkEAK5cCQQrgya6bliv1M+jMWgHBgCN04pzyquy1X0v3GEVevbuD+KTljwIiqwCaJCQANU6nLtSfDBV6iG4E/GwA6d7nXur2+mHFVXNiZltX3bcUa+Q36oHFLsyl4W1NrImbGwNDCIzp4EalseTplXfWRrrHEj3A9wxIAPgUWLA5zdSEA9sxOcnVPEPlATFmSOkStQy/W2PMM7V7MnWZlXPgGUqB+OkEeiMVNY5VG/7AN+oKHnomlRzaIGDfpAbQ/qmrOK8Z8v0nZGCICan+Xzpmbv6pyvGUIcsgCBVoPf7O61l92vykKlROWgVlU3cVLLtZI5tnuYDcfqQHB9PWKmV63n8fpJBZ6TI+aJa0fj+tbATsaM8QjladWpokDQj+7wpfK1LIr1LDtnvDC0Dc7uNGtVfmzToKbSGkgiq1VHksGZ9ReEZnibnjm89TdGbtQqA6XJWXZ9F+VjETqvlmQ53ELGLPmgGTvSURKRBkR5UZ5a+A64yeTW+IHUq6T+Utcqb5A9Byrqnf8VLUUk+UviDB40iW/DU5tkwO5TVJI9Hj+pzzOTA7OpIr1kWYahCXPP3ALJizmqlpa+sWVCZqqsqeuiCI+frpBE0cPUONzaBwx0f6HWQ4dwD/f/Q=
|
||||
- secure: Qc9fW1ygWNArfhIEa5zhvWj+vmqb5MWbeQwsskl7bFOM2eARjGBAY9Ns8IpT3rL0DZLrGuM4WswgVggiFvx0PJuakW59fPq8Iu+p64k8kyOl1+0qoBS1BIOXRNnoSsas6Wcr5YnsNp/N8Nn09LT/oDfxowV8nsxAePGDT/ypfghCvPnwFbdw2gAkBgqeNBqm5h/8LReJ7TMckUWUlYWm+og1V/EVugWEBfo6mfwpZqHax00mniLNaGCJrBK25f9Wr5A6FPcsNdcGdO3AhCPp1ISIbwmY+FK/JjtZMFU2dow3gBbgJC9adDXi8oaDeKrJ5DqHlW47X4Q6zQwqBDpdTWSLwEukfhziIHPXpEc34bZ+omtDi4d/xe/PrHjOKt7+XwW6VSrdXyBZ9atlr/SvNZlB1iA6IOMNB86CYwTi5Pzbl+s82YpzjnT/34BhYp7ag6cZ9BL3h+lKLSATroSDiTyfj7tGb6Kp1nqO43zWt+ad4nVTs+TFIN5f/dAChjhLunpeor9FD076AYfN8tI66ykZADQ+M86zlo8eee9/3Y68kjQRKooaOjNkrYUsg+Qmta0h9UU2XIRZx5O9Oaa0qpscglO2EeUb3q2YHsVbql1h3kpq9et7U06mWn8V/XZZpdONL67D6WSTX/5S2+l6SZ5o6x5tYN7Wbluu7rccwSc=
|
||||
|
|
3
travis-coveralls-report.sh
Normal file
3
travis-coveralls-report.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
./mvnw --projects builder,plugin test jacoco:report coveralls:report
|
3
travis-deploy.sh
Normal file
3
travis-deploy.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
./mvnw --projects plugin,ruleset --settings travis-settings.xml -Dskip-Tests=true -P release -B deploy
|
15
travis-settings.xml
Normal file
15
travis-settings.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?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>${env.CI_DEPLOY_USERNAME}</username>
|
||||
<password>${env.CI_DEPLOY_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>sonatype-nexus-staging</id>
|
||||
<username>${env.CI_DEPLOY_USERNAME}</username>
|
||||
<password>${env.CI_DEPLOY_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
Loading…
Reference in a new issue