]>
Commit | Line | Data |
---|---|---|
0e3b67e2 PS |
1 | default: |
2 | timeout: 2h | |
3 | ||
4 | workflow: | |
5 | rules: | |
6 | - if: $CI_PIPELINE_SOURCE == "merge_request_event" | |
7 | - if: $CI_COMMIT_TAG | |
8 | - if: $CI_COMMIT_REF_PROTECTED == "true" | |
9 | ||
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 | |
cd69c635 PS |
54 | |
55 | static-analysis: | |
56 | image: ubuntu:22.04 | |
57 | variables: | |
58 | jobname: StaticAnalysis | |
59 | before_script: | |
60 | - ./ci/install-docker-dependencies.sh | |
61 | script: | |
62 | - ./ci/run-static-analysis.sh | |
63 | - ./ci/check-directional-formatting.bash |