forked from segmentio/analytics-ios
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (31 loc) · 957 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SDK ?= "iphonesimulator"
DESTINATION ?= "platform=iOS Simulator,name=iPhone 7"
PROJECT := Analytics
XC_ARGS := -scheme $(PROJECT) -workspace $(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
bootstrap:
.buildscript/bootstrap.sh
install: Podfile Analytics.podspec
pod install
lint:
pod lib lint
carthage:
carthage build --no-skip-current
archive:
carthage archive Analytics
clean:
xcodebuild $(XC_ARGS) clean
build:
xcodebuild $(XC_ARGS)
test:
xcodebuild test $(XC_ARGS)
clean-pretty:
set -o pipefail && xcodebuild $(XC_ARGS) clean | xcpretty
build-pretty:
set -o pipefail && xcodebuild $(XC_ARGS) | xcpretty
test-pretty:
set -o pipefail && xcodebuild test $(XC_ARGS) | xcpretty --report junit
xcbuild:
xctool $(XC_ARGS)
xctest:
xctool test $(XC_ARGS)
.PHONY: bootstrap lint carthage archive test xctest build xcbuild clean