summaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: fbe29d198b9cfba3661781d01ec59d1b32fe4044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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.1

jobs:
  buildJ8:
    docker:
      - image: circleci/openjdk:8-jdk

    <<: *gbsteps

  buildJ9:
    docker:
      - image: circleci/openjdk:9-jdk

    <<: *gbsteps

  buildJ11:
    docker:
      - image: circleci/openjdk:11-jdk

    <<: *gbsteps

workflows:
  version: 2
  build:
    jobs:
      - "buildJ8":
          post-steps:
            - run:
                name: Upload coverage to Codecov
                command: bash <(curl -s https://codecov.io/bash)
      - "buildJ9"
      - "buildJ11"