-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 958 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
SHELL = /bin/bash -o pipefail
project = CKPickerView
# Test Parameters
PLATFORM ?= iOS Simulator
NAME ?= iPhone 6
OS ?= 9.0
DESTINATION ?= platform=$(PLATFORM),name=$(NAME),OS=$(OS)
ifeq ($(TRAVIS)$(TRAVIS_MATRIX_LEADER),true)
test: test-unit
else
test: test-unit test-carthage test-cocoapods
endif
test-unit:
xcodebuild test -scheme $(project) -destination "$(DESTINATION)" ONLY_ACTIVE_ARCH=NO OBJROOT=$(PWD)/build SYMROOT=$(PWD)/build | xcpretty
test-carthage:
carthage build --verbose --no-skip-current | xcpretty
test-cocoapods:
pod lib lint $(project).podspec
bootstrap:
bundle install
brew install carthage
deps:
carthage bootstrap --verbose | xcpretty
release:
zip -r -9 $(project).framework.zip Carthage/Build/iOS/*.framework
clean:
git clean -xfd
git submodule foreach git clean -xfd
rm -rf ~/Library/Developer/Xcode/DerivedData/$(project)-*
.PHONY: all clean test test-unit test-carthage test-cocoapods bootstrap deps release