0

Merge pull request #4 from rjenkinsjr/move-to-circle

Move from private Jenkins CI server to CircleCI
This commit is contained in:
Ronald Jack Jenkins Jr
2017-07-30 20:48:51 -04:00
committed by GitHub
3 changed files with 48 additions and 50 deletions

25
circle.yml Normal file
View File

@@ -0,0 +1,25 @@
machine:
java:
version: oraclejdk8
dependencies:
pre:
- wget -nv https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- sudo tar -zxf apache-maven-3.3.9-bin.tar.gz -C /usr/local/
- rm apache-maven-3.3.9-bin.tar.gz
- sudo ln -sfn /usr/local/apache-maven-3.3.9 /usr/local/apache-maven
override:
- mvn -V -DskipTests clean install dependency:resolve-plugins dependency:go-offline
test:
override:
- exit # We don't have any tests right now.
deployment:
master:
branch: master
commands:
- mvn clean
- mvn -s settings.xml -Drtr.release=true
- git tag $(cat .version)
- git push origin $(cat .version)

53
pom.xml
View File

@@ -29,7 +29,6 @@
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<maven.javadoc.version>2.10.3</maven.javadoc.version> <maven.javadoc.version>2.10.3</maven.javadoc.version>
<sonar.java.source>${maven.compiler.source}</sonar.java.source>
<rtr.allowExternalSnapshots>true</rtr.allowExternalSnapshots> <rtr.allowExternalSnapshots>true</rtr.allowExternalSnapshots>
<site.src>${project.basedir}/src/site</site.src> <site.src>${project.basedir}/src/site</site.src>
<site.dest>${project.basedir}/target/site-src</site.dest> <site.dest>${project.basedir}/target/site-src</site.dest>
@@ -51,6 +50,12 @@
</license> </license>
</licenses> </licenses>
<!-- Dependencies --> <!-- Dependencies -->
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
@@ -143,26 +148,6 @@
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
<!-- Plugins used by profiles. -->
<pluginManagement>
<plugins>
<!-- SonarQube analysis. -->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sonarqube-analysis</id>
<phase>verify</phase>
<goals>
<goal>sonar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<!-- Manages site/report configuration. --> <!-- Manages site/report configuration. -->
<reporting> <reporting>
@@ -254,23 +239,6 @@
</plugins> </plugins>
</reporting> </reporting>
<profiles> <profiles>
<!-- SonarQube analysis profile. -->
<profile>
<id>sonarqube</id>
<activation>
<property>
<name>sonar.host.url</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<!-- Things to do only for releases. --> <!-- Things to do only for releases. -->
<profile> <profile>
<id>release</id> <id>release</id>
@@ -300,9 +268,7 @@
</goals> </goals>
<configuration> <configuration>
<target> <target>
<propertyfile file="${project.basedir}/version.properties"> <echo message="${project.version}" file="${project.basedir}/.version" />
<entry key="RELEASE_POM_VERSION" value="${project.version}" />
</propertyfile>
</target> </target>
</configuration> </configuration>
</execution> </execution>
@@ -336,11 +302,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- SonarQube analysis. -->
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
</plugin>
<!-- Deploy the Maven artifacts to a local directory for publishing to GitHub. --> <!-- Deploy the Maven artifacts to a local directory for publishing to GitHub. -->
<plugin> <plugin>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>

12
settings.xml Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<!-- GitHub site deployment. -->
<server>
<id>github</id>
<password>${env.GMSP_OAUTHTOKEN}</password>
</server>
</servers>
</settings>