From c02226df93d7ff8f3cb11dfa784bf759c874aaa0 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Thu, 9 Feb 2017 16:27:04 -0700 Subject: [PATCH 1/2] COURSESPLT-29: Setup Travis CI and Checkstyle with Google Code Style --- .travis.yml | 6 ++++++ pom.xml | 18 +++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c6a2c17 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: java +jdk: oraclejdk8 + +script: + - mvn test --batch-mode + - mvn checkstyle:check --batch-mode --fail-never diff --git a/pom.xml b/pom.xml index d875966..0484ee6 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 2.0.4-SNAPSHOT pom CoursePortlet - + 3.0.0 @@ -52,7 +52,7 @@ 0.6.4 1.0.29 1.7.2 - + 1.6 1.6 UTF-8 @@ -378,4 +378,16 @@ - \ No newline at end of file + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17 + + google_checks.xml + + + + + From c45ba46b945d86ffe98eab0999960f56835acf5d Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Wed, 1 Mar 2017 10:18:37 -0700 Subject: [PATCH 2/2] COURSESPLT-29: Allow access to external schemas Resolves error "'file' access is not allowed due to restriction set by the accessExternalSchema property" --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c6a2c17..041680f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +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 + - mvn test --batch-mode -Djavax.xml.accessExternalSchema=all - mvn checkstyle:check --batch-mode --fail-never