From 4b8c27edef8c87c00ef6e5be556f8a803723a5c0 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Mon, 18 Dec 2017 16:58:52 -0800 Subject: [ios, build] Run undefined behavior sanitizer on CircleCI --- Makefile | 8 ++++---- circle.yml | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 862201d8d1..8ba07366a2 100644 --- a/Makefile +++ b/Makefile @@ -235,14 +235,14 @@ ios-test: $(IOS_PROJ_PATH) ios-integration-test: $(IOS_PROJ_PATH) set -o pipefail && $(IOS_XCODEBUILD_SIM) -scheme 'Integration Test Harness' test $(XCPRETTY) +.PHONY: ios-sanitize +ios-sanitize: $(IOS_PROJ_PATH) + set -o pipefail && $(IOS_XCODEBUILD_SIM) -scheme 'CI' -enableThreadSanitizer YES -enableUndefinedBehaviorSanitizer YES test $(XCPRETTY) + .PHONY: ios-sanitize-address ios-sanitize-address: $(IOS_PROJ_PATH) set -o pipefail && $(IOS_XCODEBUILD_SIM) -scheme 'CI' -enableAddressSanitizer YES test $(XCPRETTY) -.PHONY: ios-sanitize-thread -ios-sanitize-thread: $(IOS_PROJ_PATH) - set -o pipefail && $(IOS_XCODEBUILD_SIM) -scheme 'CI' -enableThreadSanitizer YES test $(XCPRETTY) - .PHONY: ipackage ipackage: $(IOS_PROJ_PATH) FORMAT=$(FORMAT) BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=$(SYMBOLS) \ diff --git a/circle.yml b/circle.yml index 3f67f8f6e6..3b85eaaf31 100644 --- a/circle.yml +++ b/circle.yml @@ -32,8 +32,8 @@ workflows: - linux-gcc5-release-qt4 - linux-gcc5-release-qt5 - ios-debug + - ios-sanitize #- ios-sanitize-address - - ios-sanitize-thread - ios-release: filters: tags: @@ -732,7 +732,7 @@ jobs: - *save-cache # ------------------------------------------------------------------------------ - ios-sanitize-address: + ios-sanitize: macos: xcode: "9.2.0" environment: @@ -745,13 +745,13 @@ jobs: - *restore-cache - *reset-ccache-stats - run: - name: Build and run SDK unit tests with address sanitizer - command: make ios-sanitize-address + name: Build and run SDK unit tests with thread and undefined behavior sanitizers + command: make ios-sanitize - *show-ccache-stats - *save-cache # ------------------------------------------------------------------------------ - ios-sanitize-thread: + ios-sanitize-address: macos: xcode: "9.2.0" environment: @@ -764,8 +764,8 @@ jobs: - *restore-cache - *reset-ccache-stats - run: - name: Build and run SDK unit tests with thread sanitizer - command: make ios-sanitize-thread + name: Build and run SDK unit tests with address sanitizer + command: make ios-sanitize-address - *show-ccache-stats - *save-cache -- cgit v1.2.1