6 - if: $CI_PIPELINE_SOURCE == "merge_request_event"
8 - if: $CI_COMMIT_REF_PROTECTED == "true"
13 CUSTOM_PATH: "/custom"
15 - ./ci/install-dependencies.sh
17 - useradd builder --create-home
18 - chown -R builder "${CI_PROJECT_DIR}"
19 - sudo --preserve-env --set-home --user=builder ./ci/run-build-and-tests.sh
22 if test "$CI_JOB_STATUS" != 'success'
24 sudo --preserve-env --set-home --user=builder ./ci/print-test-failures.sh
28 - jobname: linux-sha256
31 - jobname: linux-reftable
38 - jobname: linux-TEST-vars
42 - jobname: linux-gcc-default
45 - jobname: linux-leaks
48 - jobname: linux-reftable-leaks
51 - jobname: linux-asan-ubsan
60 - t/failed-test-artifacts
66 - saas-macos-medium-m1
68 TEST_OUTPUT_DIRECTORY: "/Volumes/RAMDisk"
70 # Create a 4GB RAM disk that we use to store test output on. This small hack
71 # significantly speeds up tests by more than a factor of 2 because the
72 # macOS runners use network-attached storage as disks, which is _really_
73 # slow with the many small writes that our tests do.
74 - sudo diskutil apfs create $(hdiutil attach -nomount ram://8192000) RAMDisk
75 - ./ci/install-dependencies.sh
77 - ./ci/run-build-and-tests.sh
80 if test "$CI_JOB_STATUS" != 'success'
82 ./ci/print-test-failures.sh
83 mv "$TEST_OUTPUT_DIRECTORY"/failed-test-artifacts t/
88 image: macos-13-xcode-14
90 - jobname: osx-reftable
91 image: macos-13-xcode-14
95 - t/failed-test-artifacts
101 jobname: StaticAnalysis
103 - ./ci/install-dependencies.sh
105 - ./ci/run-static-analysis.sh
106 - ./ci/check-directional-formatting.bash