midx: implement `BTMP` chunk
[git/gitster.git] / .gitlab-ci.yml
blobcd98bcb18aa38aca55f577466f7d44f06c50177f
1 default:
2   timeout: 2h
4 workflow:
5   rules:
6     - if: $CI_PIPELINE_SOURCE == "merge_request_event"
7     - if: $CI_COMMIT_TAG
8     - if: $CI_COMMIT_REF_PROTECTED == "true"
10 test:
11   image: $image
12   before_script:
13     - ./ci/install-docker-dependencies.sh
14   script:
15     - useradd builder --create-home
16     - chown -R builder "${CI_PROJECT_DIR}"
17     - sudo --preserve-env --set-home --user=builder ./ci/run-build-and-tests.sh
18   after_script:
19     - |
20       if test "$CI_JOB_STATUS" != 'success'
21       then
22         sudo --preserve-env --set-home --user=builder ./ci/print-test-failures.sh
23       fi
24   parallel:
25     matrix:
26       - jobname: linux-sha256
27         image: ubuntu:latest
28         CC: clang
29       - jobname: linux-gcc
30         image: ubuntu:20.04
31         CC: gcc
32         CC_PACKAGE: gcc-8
33       - jobname: linux-TEST-vars
34         image: ubuntu:20.04
35         CC: gcc
36         CC_PACKAGE: gcc-8
37       - jobname: linux-gcc-default
38         image: ubuntu:latest
39         CC: gcc
40       - jobname: linux-leaks
41         image: ubuntu:latest
42         CC: gcc
43       - jobname: linux-asan-ubsan
44         image: ubuntu:latest
45         CC: clang
46       - jobname: pedantic
47         image: fedora:latest
48       - jobname: linux-musl
49         image: alpine:latest
50   artifacts:
51     paths:
52       - t/failed-test-artifacts
53     when: on_failure