|
| 1 | +# Global defaults |
| 2 | +timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out |
| 3 | +container: |
| 4 | + # https://cirrus-ci.org/faq/#are-there-any-limits |
| 5 | + # Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel |
| 6 | + cpu: 2 |
| 7 | + memory: 6G # https://cirrus-ci.org/guide/linux/#linux-containers |
| 8 | +env: |
| 9 | + PACKAGE_MANAGER_INSTALL : "apt-get update && apt-get install -y" |
| 10 | + MAKEJOBS: "-j4" |
| 11 | + DANGER_RUN_CI_ON_HOST: "1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system |
| 12 | + TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache |
| 13 | + CCACHE_SIZE: "200M" |
| 14 | + CCACHE_DIR: "/tmp/ccache_dir" |
| 15 | +# Global task template |
| 16 | +# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks |
| 17 | +global_task_template: &GLOBAL_TASK_TEMPLATE |
| 18 | + ccache_cache: |
| 19 | + folder: "/tmp/ccache_dir" |
| 20 | + depends_built_cache: |
| 21 | + folder: "/tmp/cirrus-ci-build/depends/built" |
| 22 | + depends_sdk_cache: |
| 23 | + folder: "/tmp/cirrus-ci-build/depends/sdk-sources" |
| 24 | + depends_releases_cache: |
| 25 | + folder: "/tmp/cirrus-ci-build/releases" |
| 26 | + merge_base_script: |
| 27 | + - bash -c "$PACKAGE_MANAGER_INSTALL git" |
| 28 | + - git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH |
| 29 | + - git config --global user.email "[email protected]" |
| 30 | + - git config --global user.name "ci" |
| 31 | + - git merge FETCH_HEAD # Merge base to detect silent merge conflicts |
| 32 | + ci_script: |
| 33 | + - ./ci/test_run_all.sh |
1 | 34 | #task:
|
2 | 35 | # name: "Windows"
|
3 | 36 | # windows_container:
|
|
13 | 46 | # VCPKG_COMMIT_ID: 'ed0df8ecc4ed7e755ea03e18aaf285fd9b4b4a74'
|
14 | 47 | # install_script:
|
15 | 48 | # - choco install python --version=3.7.7 -y
|
| 49 | + |
16 | 50 | task:
|
17 |
| - name: "x86_64 Linux [GOAL: install] [bionic] [Using ./ci/ system]" |
| 51 | + name: 'x86_64 Linux [GOAL: install] [bionic] [no depends, only system libs, sanitizers: address/leak (ASan + LSan) + undefined (UBSan) + integer]' |
| 52 | + << : *GLOBAL_TASK_TEMPLATE |
18 | 53 | container:
|
19 |
| - image: ubuntu:18.04 |
20 |
| - cpu: 8 |
21 |
| - memory: 8G |
22 |
| - timeout_in: 60m |
| 54 | + image: ubuntu:bionic |
23 | 55 | env:
|
24 |
| - MAKEJOBS: "-j9" |
25 |
| - DANGER_RUN_CI_ON_HOST: "1" |
26 |
| - TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache |
27 |
| - CCACHE_SIZE: "200M" |
28 |
| - CCACHE_DIR: "/tmp/ccache_dir" |
29 |
| - ccache_cache: |
30 |
| - folder: "/tmp/ccache_dir" |
31 |
| - depends_built_cache: |
32 |
| - folder: "/tmp/cirrus-ci-build/depends/built" |
33 |
| - ci_script: |
34 |
| - - ./ci/test_run_all.sh |
| 56 | + FILE_ENV: "./ci/test/00_setup_env_native_asan.sh" |
0 commit comments