From ac1e8f8e5aa2ec074668ec45d5c64633907743ea Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Mon, 12 Dec 2016 13:34:17 +0100 Subject: Add definition file for Travis CI Add the most basic build definition file for Travis CI. It only defines the project language as Java. For the rest the defaults are kept as Travis seems to work fine with them. We add `.travis.yml` as a dotfile in order not to clutter the top directory with too much non-project files. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..a98b7603 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,2 @@ +language: java + -- cgit v1.2.3 From 43f642bad9e3983f566c1166316f88cd69ce6318 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Thu, 15 Dec 2016 22:10:37 +0100 Subject: Add build definition file for Circle CI Configure the build for Circle CI in the new file circle.yml. Specify a compile step to have the build fail on compilation error. The test step is then configured as `ant test`, which will compile again due to the limits of Ant/Moxie. Contrary to the documentation, the default Java version on Circle CI is Java 8. The project is set as a Java 7 project. We define to use OpenJDK 7, because the Gitblit build has some trouble with Java 8, I consider Java 7 the default, and Circle CI does not provide an Oracle JDK 7 installation to use. I could only get it to work with OpenJDK 7. The Java version is reported in the Circle CI build script to ease analysis. Test and coverage reports get stored as artifacts for a build, which allows to browse them in the Circle CI web interface. --- circle.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..fcf87867 --- /dev/null +++ b/circle.yml @@ -0,0 +1,22 @@ +machine: + java: + version: openjdk7 + +compile: + pre: + - java -version + - javac -version + override: + - ant + +test: + override: + - ant test + post: + - mkdir -p $CIRCLE_TEST_REPORTS/junit/ + - cp -a build/tests/TEST-*.xml $CIRCLE_TEST_REPORTS/junit/ + +general: + artifacts: + - "build/target/reports" + -- cgit v1.2.3