Skip to content

Commit fa2eb3d

Browse files
author
MarcoFalke
committed
ci: Run asan ci config on cirrus
1 parent fa93527 commit fa2eb3d

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

.cirrus.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
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
134
#task:
235
# name: "Windows"
336
# windows_container:
@@ -14,3 +47,10 @@
1447
# install_script:
1548
# - choco install python --version=3.7.7 -y
1649

50+
task:
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
53+
container:
54+
image: ubuntu:bionic
55+
env:
56+
FILE_ENV: "./ci/test/00_setup_env_native_asan.sh"

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ jobs:
120120
TEST_RUNNER_EXTRA="--exclude feature_block"
121121
FILE_ENV="./ci/test/00_setup_env_native_tsan.sh"
122122
123-
- stage: test
124-
name: 'x86_64 Linux [GOAL: install] [bionic] [no depends, only system libs, sanitizers: address/leak (ASan + LSan) + undefined (UBSan) + integer]'
125-
env: >-
126-
FILE_ENV="./ci/test/00_setup_env_native_asan.sh"
127-
128123
- stage: test
129124
name: 'x86_64 Linux [GOAL: install] [focal] [no depends, only system libs, sanitizers: fuzzer,address,undefined]'
130125
env: >-

0 commit comments

Comments
 (0)