From 7af4c13486ed0b4a8b31a39aad50c26dbe2ad252 Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Thu, 19 Mar 2020 18:15:42 -0500 Subject: [PATCH] [circleci] add t_ubu_asan_constantinople_clang --- .circleci/config.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 81acd1383..15f122e48 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -173,6 +173,18 @@ defaults: - store_test_results: *store_test_results - store_artifacts: *artifacts_test_results + - test_asan_clang: &test_asan_clang + <<: *test_ubuntu2004_clang + steps: + - checkout + - attach_workspace: + at: build + - run: + <<: *run_soltest + no_output_timeout: 30m + - store_test_results: *store_test_results + - store_artifacts: *artifacts_test_results + # -------------------------------------------------------------------------- # Workflow Templates @@ -216,6 +228,11 @@ defaults: requires: - b_ubu_asan + - workflow_ubuntu2004_asan_clang: &workflow_ubuntu2004_asan_clang + <<: *workflow_trigger_on_tags + requires: + - b_ubu_asan_clang + - workflow_emscripten: &workflow_emscripten <<: *workflow_trigger_on_tags requires: @@ -380,6 +397,20 @@ jobs: - store_artifacts: *artifacts_solc - persist_to_workspace: *artifacts_executables + + b_ubu_asan_clang: &build_ubuntu2004_clang + docker: + - image: ethereum/solidity-buildpack-deps:ubuntu2004-clang-<< pipeline.parameters.ubuntu-2004-clang-docker-image-rev >> + environment: + CC: clang + CXX: clang++ + CMAKE_OPTIONS: -DSANITIZE=address + steps: + - checkout + - run: *run_build + - store_artifacts: *artifacts_solc + - persist_to_workspace: *artifacts_executables + b_ubu: &build_ubuntu2004 docker: - image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >> @@ -672,6 +703,14 @@ jobs: SOLTEST_FLAGS: --no-smt ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2 + t_ubu_asan_constantinople_clang: + <<: *test_asan_clang + environment: + EVM: constantinople + OPTIMIZE: 0 + SOLTEST_FLAGS: --no-smt + ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2 + t_ems_solcjs: docker: - image: buildpack-deps:latest @@ -836,7 +875,9 @@ workflows: # ASan build and tests - b_ubu_asan: *workflow_trigger_on_tags + - b_ubu_asan_clang: *workflow_trigger_on_tags - t_ubu_asan_constantinople: *workflow_ubuntu2004_asan + - t_ubu_asan_constantinople_clang: *workflow_ubuntu2004_asan_clang - t_ubu_asan_cli: *workflow_ubuntu2004_asan # Emscripten build and selected tests