From 845de9dbdd4a19ea7d4bd15d66fe9e22a16eae23 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Thu, 6 Jun 2019 15:28:16 +0200 Subject: Migrate to Circle CI version 2 The new Circle CI requires a completely different configuration. --- .circleci/config.yml | 28 ++++++++++++++++++++++++++++ circle.yml | 22 ---------------------- 2 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..605be704 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,28 @@ +version: 2 + +jobs: + build: + docker: + - image: circleci/openjdk:8-jdk + + steps: + - run: + name: Report on build environment + command: | + java -version + javac -version + + - checkout + - run: ant + + - run: ant test + - run: + name: Collect test results + command: | + mkdir -p test_reports/junit/ + cp -a build/tests/TEST-*.xml test_reports/junit/ + - store_test_results: + path: test_reports + - store_artifacts: + path: build/target/reports + diff --git a/circle.yml b/circle.yml deleted file mode 100644 index fcf87867..00000000 --- a/circle.yml +++ /dev/null @@ -1,22 +0,0 @@ -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