-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathMakefile
62 lines (46 loc) · 2.21 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
60
61
62
.PHONY: tags framework bundle integration-tests ui-integration-tests clean test package release
pods:
pod install
test:
SZEventTrackingDisabled=1 WRITE_JUNIT_XML=YES RUN_CLI=1 GHUNIT_CLI=1 GHUNIT_AUTORUN=1 xcodebuild -workspace Socialize.xcworkspace -scheme UnitTests -configuration Debug -sdk iphonesimulator -destination OS=8.1,name="iPhone 5"
default: build buildsample test package
package: framework
./Scripts/package.sh
release: package
framework:
xcodebuild -workspace Socialize.xcworkspace -scheme "Socialize Framework" -configuration Release
clean:
xcodebuild -workspace Socialize.xcworkspace -scheme "Socialize" -configuration Release -sdk iphoneos clean
xcodebuild -workspace Socialize.xcworkspace -scheme "UnitTests" -configuration Debug -sdk iphonesimulator clean
xcodebuild -workspace Socialize.xcworkspace -scheme "IntegrationTests" -configuration Debug -sdk iphonesimulator clean
xcodebuild -workspace Socialize.xcworkspace -scheme "TestApp" -configuration Debug -sdk iphonesimulator clean
rm -rfd build
rm -rfd Pods
rm -f $(SUBST_BUILD_FILES)
coverage:
./Scripts/generate-combined-coverage-report.sh build/test-coverage/IntegrationTests-Coverage.info build/test-coverage/unitTests-Coverage.info build/test-coverage/UIIntegrationTests-Coverage.info
integration-tests:
SZEventTrackingDisabled=1 WRITE_JUNIT_XML=YES RUN_CLI=1 GHUNIT_CLI=1 GHUNIT_AUTORUN=1 xcodebuild -workspace Socialize.xcworkspace -scheme IntegrationTests -configuration Debug -sdk iphonesimulator -destination OS=8.1,name="iPhone 5" build
ui-integration-tests:
xcodebuild -workspace Socialize.xcworkspace -scheme "TestApp" -configuration Debug -sdk iphonesimulator -destination OS=8.1,name="iPhone 5" test
./Scripts/generate-ui-coverage-report.sh
doc:
cd Socialize && appledoc ./DocSettings.plist
.SUFFIXES:
-include subst.mk
SUBST_BUILD_FILES := Documentation/sphinx/source/conf.py
subst: $(SUBST_BUILD_FILES)
sphinx_doc: subst
export LANG=en_US.UTF-8;\
export LC_ALL=en_US.UTF-8;\
export LC_CTYPE=en_US.UTF-8;\
ant -buildfile ./sphinx_doc.xml
tags:
ctags -R --language-force=ObjectiveC --extra=f Socialize SampleSdkApp Frameworks
ci:
make clean
make pods
make test
make integration-tests
make ui-integration-tests
make coverage