aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: ca753350b0ffb34641af656c1adfeb5c040002fc (plain) (blame)
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
version: 2.1
orbs:
  rebar3: tsloughter/[email protected]

jobs:
  ct:
    parameters:
      tag:
        description: The docker tag to use.
        type: string
        default: "21.2"
    executor:
      name: rebar3/erlang
      tag: <<parameters.tag>>
    steps:
      - checkout
      - rebar3/ct
      # Delete OTP files which don't need to be stored
      - run: |
          find _build/test/logs -type d -and \( -path "*/erts-*" -or -path "*/kernel-*" -or -path  "*/stdlib-*" \) -exec rm -rf '{}' \+ || true
          find _build/test/logs -type f -name "*.beam" -exec rm -rf '{}' \+ || true
      - store_artifacts:
          path: _build/test/logs

workflows:
  build-test:
    jobs:
      - ct:
          name: "21"
          tag: "21.2"
      - ct:
          name: "20"
          tag: "20"
      - ct:
          name: "19"
          tag: "19"
      - ct:
          name: "18"
          tag: "18"