Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: java

# define the $TOKEN environment variable with OAuth2 Token for GitHub
env:
global:
- secure: "L8/g6MW2BguawcrEVOZXjzSazJDu/iiZZ8KcH6EIaWyCpmS+FRZ0uw03QGVn\nrsDcbGe20cqSd+ZlWnE6VZ8MFv+q07xH2uJjzuyM1jnhm7+VpIAGVuAYFPsm\n4BgcyXS0ffx3FWtImrCRaKc9n/IV1soO9de+uoQY+YDxvOQzDY8="

# No need to run mvn install, so we use this step to print env details instead
install: mvn --version

# the package phase is all we need. deploy/install is skipped
script: mvn -q clean verify

jdk:
- openjdk7

branches:
only:
- master
- topic-ciupload

notifications:
email:
- [email protected]

# Use the github site plugin to push the results to the gh-pages branch
after_success:
- mvn -q com.github.github:site-maven-plugin:site

36 changes: 20 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.tagtraum</groupId>
<artifactId>gcviewer</artifactId>
<version>1.32-SNAPSHOT</version>

<packaging>jar</packaging>
<name>GCViewer</name>

<url>http://github.com/chewiebug/GCViewer/wiki</url>

<developers>
Expand Down Expand Up @@ -58,17 +61,17 @@
</licenses>

<properties>
<github.global.server>github</github.global.server>

<build.timestamp>${maven.build.timestamp}</build.timestamp>

<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>

<github.global.oauth2Token>${env.TOKEN}</github.global.oauth2Token>
</properties>

<scm>
<url>https://github.com/chewiebug/GCViewer</url>
<connection>scm:git:git://https://github.com/chewiebug/GCViewer.git</connection>
<developerConnection>scm:git:[email protected]/chewiebug/GCViewer.git</developerConnection>
<url>https://github.com/ecki/GCViewer</url>
<connection>scm:git:git://https://github.com/ecki/GCViewer.git</connection>
<developerConnection>scm:git:[email protected]/ecki/GCViewer.git</developerConnection>
</scm>

<dependencies>
Expand All @@ -83,6 +86,11 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -109,8 +117,8 @@
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<version>0.6</version>
<artifactId>site-maven-plugin</artifactId>
<version>0.7</version>
</plugin>
</plugins>
</pluginManagement>
Expand All @@ -120,7 +128,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<includes>
<include>com/tagtraum/perf/gcviewer/TestAll.java</include>
Expand Down Expand Up @@ -264,21 +271,18 @@
</executions>
</plugin>

<!-- execute this using "mvn install ghDownloads:upload" DON'T use eclipse
to do so, because m2eclipse can't filter ${maven.build.timestamp} into build.info.properties -->
<!-- can be executed by travis-ci with "mvn com.github.github:site-maven-plugin:site"
will require OAuth token for the github repo from scm.url in ${env.TOKEN}. -->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<artifactId>site-maven-plugin</artifactId>
<configuration>
<description>${project.version} release of ${project.name}. This is
a development release of the latest sources. See
https://github.com/chewiebug/GCViewer/wiki/Changelog</description>
<message>Travis #${env.TRAVIS_JOB_ID} build ${project.name} ${project.version}</message>
<outputDirectory>${project.build.directory}</outputDirectory>
<includes>
<include>gcviewer_mac_${project.version}.zip</include>
<include>gcviewer-${project.version}.zip</include>
</includes>
<override>true</override>
<includeAttached>true</includeAttached>
<dryRun>false</dryRun>
</configuration>
</plugin>
Expand Down