Skip to content

Commit 0b070e5

Browse files
committed
automatic release
1 parent 2bd9ab5 commit 0b070e5

File tree

4 files changed

+70
-17
lines changed

4 files changed

+70
-17
lines changed

.travis-settings.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>github</id>
5+
<password>${env.GITHUB_PASSWORD}</password>
6+
</server>
7+
</servers>
8+
</settings>

.travis.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
language: java
2-
32
matrix:
43
include:
5-
- os: osx
6-
osx_image: xcode9
7-
- os: linux
8-
jdk: openjdk8
9-
- os: linux
10-
jdk: oraclejdk8
11-
4+
- os: osx
5+
osx_image: xcode9
6+
- os: linux
7+
jdk: openjdk8
8+
- os: linux
9+
jdk: oraclejdk8
1210
sudo: true
13-
1411
install: "./.travis_install.sh"
1512
script: "./.travis_run_tests.sh"
16-
1713
cache:
1814
directories:
19-
- $HOME/.m2
15+
- "$HOME/.m2"
16+
after_success:
17+
- "./.travis_deploy.sh"
18+
env:
19+
global:
20+
secure: Iy9BF1undwwc3rNo9VikWuqdDqyBbGetG/IGVPBW2ciJEuZNwK76jB/DWfhP2pFxWaU3VDFlPUExAHc90R46MOj9PzhALwadKcWN+z4LWio4Pd4x4miejI7NK2rQfWMQacxIfw05zIt9nWvqNGjrEDg5J3hx3G0sa/eyhi5odZLt5AKNxqJTQNiVv1STZJSntssKhaweVqdnwg3/B1kXEvSyA6Em1/4DhcUEYSBpgvKTfV0+BeoISorEqsR+T3Nrqx48t0fDFzZwd/oMRAjD//loNHebwdxNhAmr+NXlMUXlqdGLgUYTPI+kF9ESgrY7mKkuN4WSc0d8Di3HuznvRvmStMX11OFnblY2OOjPPFEmk4eQW1N/t8oqqHNPpHDpTeHAPL3CLitP66R6d1H0y5megj6WiQeN9Y0lmtB6knUdG4Vmdj3M7aKHVgKGMvgRBfTqF9jQrRbGYxdmnBeq66VKKuxKINr2DQEsL4PzXdb/xBUz1DmAieUprc74ttp5K7uHFNrGOEhSYoHB0iCmSUUl3hAHJgdVKPNJK7LP2dqZwm5mVGEd+LTDCHHOzhxArD2c5CkzWRVFAbDS3r1ExueaC8jrLSrik0l/C82ih+uG247UMXq9RV+ch3ZB4/VYTN2cCTQ0HQIoHYaghW5UAFfwxcIpbnp0qs6y+XF76Qc=

.travis_deploy.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_JDK_VERSION == "openjdk8" ]; then
4+
cd nopol;
5+
mvn deploy --settings ../.travis-settings.xml -DskipTests=true -B;

nopol/pom.xml

+45-6
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@
4444
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
4545
<maven-release-plugin.version>2.5.1</maven-release-plugin.version>
4646
<maven-resources-plugin.version>2.6</maven-resources-plugin.version>
47-
<maven-jacoco-plugin.version>0.7.5.201505241946
48-
</maven-jacoco-plugin.version>
47+
<maven-jacoco-plugin.version>0.7.5.201505241946</maven-jacoco-plugin.version>
4948
<maven-coveralls-plugin.version>4.0.0</maven-coveralls-plugin.version>
49+
50+
<github.global.server>github</github.global.server>
5051
</properties>
5152

5253
<dependencies>
@@ -258,10 +259,6 @@
258259
</execution>
259260
</executions>
260261
</plugin>
261-
262-
<plugin>
263-
<artifactId>maven-surefire-plugin</artifactId>
264-
</plugin>
265262
<plugin>
266263
<groupId>org.jacoco</groupId>
267264
<artifactId>jacoco-maven-plugin</artifactId>
@@ -293,6 +290,35 @@
293290
<argLine>${argLine}</argLine>
294291
</configuration>
295292
</plugin>
293+
<plugin>
294+
<artifactId>maven-deploy-plugin</artifactId>
295+
<version>2.8.1</version>
296+
</plugin>
297+
<plugin>
298+
<groupId>com.github.github</groupId>
299+
<artifactId>site-maven-plugin</artifactId>
300+
<version>0.12</version>
301+
<configuration>
302+
<merge>true</merge>
303+
<message>Maven artifacts for ${project.artifactId} ${project.version}</message>
304+
<noJekyll>true</noJekyll>
305+
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
306+
<branch>refs/heads/master</branch>
307+
<includes>
308+
<include>**/*</include>
309+
</includes>
310+
<repositoryName>maven-repository</repositoryName>
311+
<repositoryOwner>tdurieux</repositoryOwner>
312+
</configuration>
313+
<executions>
314+
<execution>
315+
<goals>
316+
<goal>site</goal>
317+
</goals>
318+
<phase>deploy</phase>
319+
</execution>
320+
</executions>
321+
</plugin>
296322
</plugins>
297323
<pluginManagement>
298324
<plugins>
@@ -400,4 +426,17 @@
400426
</repository>
401427
</repositories>
402428

429+
<distributionManagement>
430+
<repository>
431+
<id>internal-repo</id>
432+
<name>Temporary Staging Repository</name>
433+
<url>file://${project.build.directory}/mvn-repo/releases</url>
434+
</repository>
435+
<snapshotRepository>
436+
<id>internal-snapshot-repo</id>
437+
<name>Temporary Staging Snapshot Repository</name>
438+
<url>file://${project.build.directory}/mvn-repo/snapshots</url>
439+
</snapshotRepository>
440+
</distributionManagement>
441+
403442
</project>

0 commit comments

Comments
 (0)