-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
38 lines (28 loc) · 1.03 KB
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
SHELL = /bin/bash -o pipefail
project = MagicVision
test: test-unit test-carthage test-cocoapods
test-unit:
xcodebuild test -scheme $(project) -sdk iphonesimulator 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
# Detect Travis CI, see http://docs.travis-ci.com/user/environment-variables/
ifeq ($(TRAVIS_CI),true)
# Cannot brew install carthage on Travis-CI
curl -OL https://github.com/Carthage/Carthage/releases/download/0.8/Carthage.pkg
sudo /usr/sbin/installer -pkg Carthage.pkg -target /
else
brew install carthage
endif
deps:
carthage bootstrap --use-ssh --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