Skip to content

Commit

Permalink
Merge pull request #22 from ChristianMurphy/COURSESPLT-29
Browse files Browse the repository at this point in the history
COURSESPLT-29: Setup Travis CI and Checkstyle with Google Code Style
  • Loading branch information
bjagg committed Mar 1, 2017
2 parents 989f59f + c45ba46 commit ae4ef59
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
language: java
jdk: oraclejdk8

# default Travis install script with accessExternalSchema added to the end
install: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Djavax.xml.accessExternalSchema=all

script:
- mvn test --batch-mode -Djavax.xml.accessExternalSchema=all
- mvn checkstyle:check --batch-mode --fail-never
18 changes: 15 additions & 3 deletions pom.xml
Expand Up @@ -32,7 +32,7 @@
<version>2.0.4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>CoursePortlet</name>

<prerequisites>
<maven>3.0.0</maven>
</prerequisites>
Expand All @@ -52,7 +52,7 @@
<jaxb2basics.version>0.6.4</jaxb2basics.version>
<resource-server.version>1.0.29</resource-server.version>
<slf4j.version>1.7.2</slf4j.version>

<project.build.sourceVersion>1.6</project.build.sourceVersion>
<project.build.targetVersion>1.6</project.build.targetVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -378,4 +378,16 @@
</plugins>
</build>

</project>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
</project>

0 comments on commit ae4ef59

Please sign in to comment.