Deploy master commits

This commit is contained in:
Greg Turnquist
2017-05-24 20:16:00 -05:00
parent f49943260a
commit e3dd44bc6a
2 changed files with 13 additions and 3 deletions

View File

@@ -16,5 +16,14 @@ cache:
os:
- linux
branches:
except:
- gh-pages
sudo: false
script: "mvn clean dependency:list test -P${PROFILE} -Dsort"
script:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ]; then
- mvn -Pdistribute,snapshot,docs clean deploy
- else
- mvn clean dependency:list test -P${PROFILE} -Dsort
- fi

View File

@@ -361,12 +361,12 @@
<goal>run</goal>
</goals>
<configuration>
<target>
<tasks>
<zip destfile="${project.build.directory}/${project.artifactId}-${project.version}.zip">
<zipfileset src="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar" prefix="api" />
<fileset dir="${project.build.directory}/content"/>
</zip>
</target>
</tasks>
</configuration>
</execution>
</executions>
@@ -374,6 +374,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.10</version>
<executions>
<execution>
<id>attach-zip</id>