diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b372217c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: generic + +jdk: + - openjdk7 + - openjdk8 + - openjdk9 + - openjdk10 + - openjdk11 + - oraclejdk7 + - oraclejdk8 + - oraclejdk9 + - oraclejdk10 + - oraclejdk11 + +cache: + directories: + - "$HOME/.m2/repository" + +script: + - cd bin + - ./sandbox-packages.sh + - cd .. + +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/bin/sandbox-packages.sh b/bin/sandbox-packages.sh index fcd9205f..92ee26cf 100755 --- a/bin/sandbox-packages.sh +++ b/bin/sandbox-packages.sh @@ -14,7 +14,7 @@ exit_on_err() } # maven package the sandbox -mvn clean package -Dmaven.test.skip=false -f ../pom.xml \ +mvn clean cobertura:cobertura package -Dmaven.test.skip=false -f ../pom.xml \ || exit_on_err 1 "package sandbox failed." # reset the target dir diff --git a/pom.xml b/pom.xml index bbaddbe5..912d4ddd 100644 --- a/pom.xml +++ b/pom.xml @@ -94,6 +94,20 @@ + + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + + +