Skip to content

Commit

Permalink
[ci] Run TSAN on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dzhabarov authored and rdzhabarov committed Feb 5, 2019
1 parent 4256893 commit 4713adb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ if [[ "${CIRCLE_JOB}" == "ASAN" ]]; then
CMAKE_ARGS+=("-DGLOW_USE_SANITIZER='Address;Undefined'")
CMAKE_ARGS+=("-DGLOW_WITH_OPENCL=OFF")
CMAKE_ARGS+=("-DCMAKE_BUILD_TYPE=Release")
elif [[ "${CIRCLE_JOB}" == "TSAN" ]]; then
CMAKE_ARGS+=("-DGLOW_USE_SANITIZER='Thread'")
CMAKE_ARGS+=("-DGLOW_WITH_OPENCL=OFF")
elif [[ "$CIRCLE_JOB" == RELEASE_WITH_LIT ]]; then
# Setup the LLVM Integrated Tester if requested.
install_lit_env
Expand Down
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
<<: *linux_default
TSAN:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
<<: *linux_default
SHARED:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
Expand All @@ -91,5 +95,6 @@ workflows:
jobs:
- DEBUG
- ASAN
- TSAN
- SHARED
- RELEASE_WITH_LIT
5 changes: 4 additions & 1 deletion .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ case ${CIRCLE_JOB} in
# TODO: Enable ASAN test.
run_unit_tests test
;;

TSAN)
# Run only Glow tests.
run_unit_tests test
;;
DEBUG)
run_unit_tests test
run_unit_tests test_unopt
Expand Down

0 comments on commit 4713adb

Please sign in to comment.