]> source.dussan.org Git - gitblit.git/commitdiff
Migrate to Circle CI version 2
authorFlorian Zschocke <florian.zschocke@devolo.de>
Thu, 6 Jun 2019 13:28:16 +0000 (15:28 +0200)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Fri, 7 Jun 2019 10:57:25 +0000 (12:57 +0200)
The new Circle CI requires a completely different configuration.

.circleci/config.yml [new file with mode: 0644]
circle.yml [deleted file]

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644 (file)
index 0000000..605be70
--- /dev/null
@@ -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 (file)
index fcf8786..0000000
+++ /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"
-