diff options
author | Florian Zschocke <florian.zschocke@devolo.de> | 2019-11-06 16:20:27 +0100 |
---|---|---|
committer | Florian Zschocke <florian.zschocke@devolo.de> | 2019-11-06 16:47:44 +0100 |
commit | c9fe2b18f0f4894b92cae9c89f6b9a79e8aab986 (patch) | |
tree | 255695af4a27715eaafaf30ae92a3b710fa5ce58 /.circleci | |
parent | cf23590a668424bab7039bddc688fb83ab421924 (diff) | |
download | gitblit-c9fe2b18f0f4894b92cae9c89f6b9a79e8aab986.tar.gz gitblit-c9fe2b18f0f4894b92cae9c89f6b9a79e8aab986.zip |
Setup build matrix for OpenJDK 8, 9 and 11 on Circle CI
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 65 |
1 files changed, 44 insertions, 21 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 605be704..2da8c68a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,28 +1,51 @@ +gbsteps: &gbsteps + 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 + + version: 2 jobs: - build: + buildJ8: 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 + <<: *gbsteps + + buildJ9: + docker: + - image: circleci/openjdk:9-jdk + + <<: *gbsteps + + buildJ11: + docker: + - image: circleci/openjdk:11-jdk + + <<: *gbsteps +workflows: + version: 2 + build: + jobs: + - "buildJ8" + - "buildJ9" + - "buildJ11" |