mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2025-02-14 19:11:46 +01:00
add automatic deployment to nexus repository.
This commit is contained in:
parent
a1578340ea
commit
f25563c4db
@ -5,7 +5,9 @@ branchs:
|
|||||||
- gh-pages
|
- gh-pages
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
secure: lkC+9PeVPx0sFEAITPszoHvPV9jnavsJdA3Slo4FakzTB5AlERHszto4RdenAhPf347r8xKL120YvDxDeYvmffpG7NUcRXfQZxod1SRyFEFUUBC0zGHkLiJlBjAqkSEDacruldT4+1BCqRc/A96zj17knmUkvKnyutQtasOGKxk=
|
- secure: "lkC+9PeVPx0sFEAITPszoHvPV9jnavsJdA3Slo4FakzTB5AlERHszto4RdenAhPf347r8xKL120YvDxDeYvmffpG7NUcRXfQZxod1SRyFEFUUBC0zGHkLiJlBjAqkSEDacruldT4+1BCqRc/A96zj17knmUkvKnyutQtasOGKxk="
|
||||||
|
- secure: "UxxyRTgZFxEbzxfpEKFC6bYVKkhVp/kOCy5QZwbctkwQP33l3eEwDUquDVXewwLWgM6yJvWdUq9Va/f2kJ8Z7NMHLj5UTj3zIWdqJ/dZIrZ32Vb6tTawXV56627ANLsGHfw55uqIIHFs3u3HUlucyYhBAxLsxJNR4XbU2IeA8fA="
|
||||||
|
- secure: "ljUPRZkuNEqck8RIHONVD7lCr1a/aslagOQ27uB0EpuOMGfeBlDdAlpo+GnRSs2bsfvUGX9nmcgGPR6mTcV0fzHaSBg+p/BPWBuzo9wEs39H4wn8yVU70pu/wCEuRhGlFw4GE0mYp8pbHMHrc8WdxsF3dt4kAGsdVhivXuz9HHI="
|
||||||
after_success:
|
after_success:
|
||||||
- chmod +x .utility/do-publish.sh
|
- chmod +x .utility/do-publish.sh
|
||||||
- .utility/do-publish.sh
|
- .utility/do-publish.sh
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
current_dir=`pwd`
|
current_dir=`pwd`
|
||||||
|
|
||||||
mvn javadoc:javadoc
|
|
||||||
|
|
||||||
if [[ "$TRAVIS_REPO_SLUG" != "MilkBowl/VaultAPI" || "$TRAVIS_PULL_REQUEST" == "true" || "$TRAVIS_BRANCH" != "master" ]]
|
if [[ "$TRAVIS_REPO_SLUG" != "MilkBowl/VaultAPI" || "$TRAVIS_PULL_REQUEST" == "true" || "$TRAVIS_BRANCH" != "master" ]]
|
||||||
then
|
then
|
||||||
echo 'Travis can only publish docs for release builds.'
|
echo 'Travis can only publish docs for release builds.'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mvn clean javadoc:javadoc javadoc:jar deploy --settings .utility/settings.xml
|
||||||
|
|
||||||
# Get to the Travis build directory, configure git and clone the repo
|
# Get to the Travis build directory, configure git and clone the repo
|
||||||
cd $HOME
|
cd $HOME
|
||||||
git config --global user.email "travis@travis-ci.org"
|
git config --global user.email "travis@travis-ci.org"
|
||||||
|
9
.utility/settings.xml
Normal file
9
.utility/settings.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven/apache.org/xsd/settings-1.0.0.xsd">
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>pub-repo</id>
|
||||||
|
<username>${env.DEPLOY_USER}</username>
|
||||||
|
<password>${env.DEPLOY_PASS}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
Loading…
Reference in New Issue
Block a user