Skip to content

Commit 9c62d27

Browse files
committed
travis
1 parent 176fa4e commit 9c62d27

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ script:
1616

1717
after_success:
1818
- test $TRAVIS_BRANCH = "master" && mvn source:jar deploy --settings .travis/maven-settings.xml -Dmaven.test.skip=true
19+
- test "$TRAVIS_TAG" != "" && mvn source:jar deploy --settings .travis/maven-settings-release.xml -Dmaven.test.skip=true
1920
- codecov
2021
# - bash -x -e .travis/deploy.sh
2122

.travis/maven-settings-release.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
3+
Copyright (C) 2010-2014 Leon Blakey <lord.quackstar at gmail.com>
4+
5+
This file is part of PircBotX.
6+
7+
PircBotX is free software: you can redistribute it and/or modify it under the
8+
terms of the GNU General Public License as published by the Free Software
9+
Foundation, either version 3 of the License, or (at your option) any later
10+
version.
11+
12+
PircBotX is distributed in the hope that it will be useful, but WITHOUT ANY
13+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14+
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License along with
17+
PircBotX. If not, see <http://www.gnu.org/licenses/>.
18+
19+
-->
20+
<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">
21+
<servers>
22+
<server>
23+
<id>sonatype-nexus-release</id>
24+
<username>${env.DEPLOY_SNAPSHOT_USERNAME}</username>
25+
<password>${env.DEPLOY_SNAPSHOT_PASSWORD}</password>
26+
</server>
27+
</servers>
28+
</settings>

0 commit comments

Comments
 (0)