forked from Overcoat/Overcoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (39 loc) · 1.64 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
XC_WORKSPACE=Overcoat.xcworkspace
XCODE_PROJ=Overcoat.xcodeproj
OSX_TEST_SCHEME_FLAGS:=-workspace $(XC_WORKSPACE) -scheme OvercoatTests-OSX -sdk macosx
IOS_TEST_SCHEME_FLAGS:=-workspace $(XC_WORKSPACE) -scheme OvercoatTests-iOS -sdk iphonesimulator
TVOS_TEST_SCHEME_FLAGS:=-workspace $(XC_WORKSPACE) -scheme OvercoatTests-tvOS -sdk appletvsimulator
CARTHAGE_PLATFORMS=Mac,iOS
CARTHAGE_FLAGS:=--platform $(CARTHAGE_PLATFORMS)
POD_TRUNK_PUSH_FLAGS=--verbose
test: install-pod clean run-tests
test-osx: install-pod clean run-tests-osx
test-ios: install-pod clean run-tests-ios
test-tvos: install-pod clean run-tests-tvos
clean:
xcodebuild -project $(XCODE_PROJ) -alltargets clean
install-pod:
COCOAPODS_DISABLE_DETERMINISTIC_UUIDS=YES pod install --repo-update
# Run Tests
run-tests-osx:
xcodebuild $(OSX_TEST_SCHEME_FLAGS) test | xcpretty
run-tests-ios:
xcodebuild $(IOS_TEST_SCHEME_FLAGS) test | xcpretty
run-tests-tvos:
xcodebuild $(TVOS_TEST_SCHEME_FLAGS) test | xcpretty
# Intetfaces
run-tests: run-tests-osx run-tests-ios run-tests-tvos
# Distribution
test-carthage:
rm -rf Pods/
carthage update $(CARTHAGE_FLAGS)
carthage build --no-skip-current $(CARTHAGE_FLAGS) --verbose
test-pod:
pod spec lint ./*.podspec --verbose --allow-warnings --no-clean --fail-fast
distribute-pod: test
pod trunk push Overcoat.podspec $(POD_TRUNK_PUSH_FLAGS)
pod trunk push Overcoat+CoreData.podspec --allow-warnings $(POD_TRUNK_PUSH_FLAGS)
pod trunk push Overcoat+PromiseKit.podspec $(POD_TRUNK_PUSH_FLAGS)
pod trunk push Overcoat+ReactiveCocoa.podspec $(POD_TRUNK_PUSH_FLAGS)
pod trunk push Overcoat+Social.podspec $(POD_TRUNK_PUSH_FLAGS)
distribute-carthage: test