Skip to content

Commit

Permalink
[ios, build] Run static analyzer on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Mar 26, 2018
1 parent 4b8c27e commit e018b01
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ ios-sanitize: $(IOS_PROJ_PATH)
ios-sanitize-address: $(IOS_PROJ_PATH)
set -o pipefail && $(IOS_XCODEBUILD_SIM) -scheme 'CI' -enableAddressSanitizer YES test $(XCPRETTY)

.PHONY: ios-static-analyzer
ios-static-analyzer: $(IOS_PROJ_PATH)
set -o pipefail && $(IOS_XCODEBUILD_SIM) analyze -scheme 'CI' test $(XCPRETTY)

.PHONY: ipackage
ipackage: $(IOS_PROJ_PATH)
FORMAT=$(FORMAT) BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=$(SYMBOLS) \
Expand Down
20 changes: 20 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ workflows:
- ios-debug
- ios-sanitize
#- ios-sanitize-address
- ios-static-analyzer
- ios-release:
filters:
tags:
Expand Down Expand Up @@ -769,6 +770,25 @@ jobs:
- *show-ccache-stats
- *save-cache

# ------------------------------------------------------------------------------
ios-static-analyzer:
macos:
xcode: "9.2.0"
environment:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *install-macos-dependencies
- *generate-cache-key
- *restore-cache
- *reset-ccache-stats
- run:
name: Build and run SDK unit tests with the static analyzer
command: make ios-static-analyzer
- *show-ccache-stats
- *save-cache

# ------------------------------------------------------------------------------
ios-release:
macos:
Expand Down

0 comments on commit e018b01

Please sign in to comment.