Skip to content

Commit 08c84a7

Browse files
committed
Snapshot deployment
1 parent d3a32ad commit 08c84a7

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎.travis-deploy.sh‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ "$TRAVIS_REPO_SLUG" == "ocpsoft/rewrite" ] &&
4+
[ "$TRAVIS_BRANCH" == "master" ] &&
5+
[ "$TRAVIS_PULL_REQUEST" == "false" ] &&
6+
[ "$TRAVIS_JDK_VERSION" == "openjdk7" ] &&
7+
[ "$CONTAINER" == "JBOSS_AS_MANAGED_7.X" ]; then
8+
9+
echo "Starting snapshot deployment..."
10+
mvn -s .travis-snapshots-settings.xml -DperformRelease -DskipTests deploy
11+
echo "Snapshots deployed!"
12+
13+
else
14+
echo "Skipping snapshot deployment..."
15+
fi

‎.travis-settings.xml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
4+
<servers>
5+
<server>
6+
<id>sonatype-nexus-snapshots</id>
7+
<username>${env.SONATYPE_USERNAME}</username>
8+
<password>${env.SONATYPE_PASSWORD}</password>
9+
</server>
10+
</servers>
11+
12+
</settings>

‎.travis.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ cache:
55
- '$HOME/.m2/repository'
66
script:
77
- mvn -P ${CONTAINER} install
8+
after_success:
9+
- "./.travis-deploy.sh"
810
matrix:
911
include:
1012
- env: CONTAINER=JBOSS_AS_MANAGED_7.X
@@ -22,4 +24,7 @@ notifications:
2224
- "ocpsoft-ci@googlegroups.com"
2325
irc:
2426
- "chat.freenode.net#ocpsoft"
25-
27+
env:
28+
global:
29+
- secure: "h5H7qp6EPObrKGf8nFZiNOLP6ofJtB2W87I3eP5Uj5+ztQwfQTu+tILsU35JteCNLAaB3VNfEMt0q4BI7ShZR9GzwT8eNWHkMsh3bN3QIoFus7hYzDCoBtQEkflyoK6SKI3oWgpBNW3aQuyztbGk8ZAVmMflHLYEaKfJzF9hFkg="
30+
- secure: "tTZ3fE3OHnS14Ko0QcD7MrTbOwo4tNu7OPJGA1kY312NO0WqEJeuib2Re8rBZt4YT3xIXvq1l5phqGcgfqkf/fs+bhjqvxfa+Z3TI0ei5SLdzGmadLIq6nXqk0fz7CpuIhEl/w86RbqiQqbuj79ARy2+dxhx2REG8vfcT1HvTbo="

0 commit comments

Comments
 (0)