Skip to content

Commit 1ff2814

Browse files
committed
Handle Both SNAPSHOTS and Release Builds
1 parent 5161a4d commit 1ff2814

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ install:
1111
before_script:
1212
mvn cobertura:cobertura
1313

14+
## Build SNAPSHOTS and release to maven central
15+
script:
16+
mvn deploy --settings cfg/maven/CI/settings.xml -DskipTests=true -B -U -Prelease
17+
1418
after_success:
1519
- bash <(curl -s https://codecov.io/bash)
1620

@@ -19,6 +23,7 @@ deploy:
1923
script: mvn --settings cfg/maven/CI/settings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$TRAVIS_TAG -Prelease
2024
on:
2125
tags: true
26+
branch: kicksolutions/swagger2puml
2227

2328
after_deploy: mvn clean deploy --settings cfg/maven/CI/settings.xml -DskipTests=true -DnewVersion=$TRAVIS_TAG -B -U -Prelease
2429

0 commit comments

Comments
 (0)