-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
22 lines (16 loc) · 647 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SDK ?= "iphonesimulator"
DESTINATION ?= "platform=iOS Simulator,name=iPhone 8"
PROJECT := Segment-Taplytics
XC_ARGS := -scheme $(PROJECT)-Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO
install: Example/Podfile $(PROJECT).podspec
pod repo update
pod install --project-directory=Example
lint:
pod lib lint --use-libraries --allow-warnings
clean:
set -o pipefail && xcodebuild $(XC_ARGS) clean | xcpretty
build:
set -o pipefail && xcodebuild $(XC_ARGS) | xcpretty
test:
set -o pipefail && xcodebuild test $(XC_ARGS) | xcpretty --report junit
.PHONY: clean install build test