forked from socialize/socialize-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 1.63 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
.PHONY: tags framework bundle integration-tests ui-integration-tests clean test package release
test:
WRITE_JUNIT_XML=YES RUN_CLI=1 xcodebuild -scheme UnitTests -configuration Debug -sdk iphonesimulator
default: build buildsample test package
package: framework
./Scripts/package.sh
release: package
framework:
xcodebuild -scheme "Socialize Framework" -configuration Release
clean:
xcodebuild -scheme "Socialize" -configuration Release -sdk iphoneos clean
xcodebuild -scheme "UnitTests" -configuration Debug -sdk iphonesimulator clean
xcodebuild -scheme "IntegrationTests" -configuration Debug -sdk iphonesimulator clean
xcodebuild -scheme "UIIntegrationTests" -configuration Debug -sdk iphonesimulator clean
rm -rfd build
rm -f $(SUBST_BUILD_FILES)
coverage:
./Scripts/generate-combined-coverage-report.sh build/test-coverage/UIIntegrationTests-Coverage.info build/test-coverage/IntegrationTests-Coverage.info build/test-coverage/unitTests-Coverage.info
integration-tests:
WRITE_JUNIT_XML=YES RUN_CLI=1 xcodebuild -scheme IntegrationTests -configuration Debug -sdk iphonesimulator build
ui-integration-tests:
RUN_CLI=1 xcodebuild -scheme UIIntegrationTests -configuration Debug -sdk iphonesimulator build
doc:
cd Socialize && appledoc ./DocSettings.plist
.SUFFIXES:
-include subst.mk
SUBST_BUILD_FILES := Socialize-noarc/SocializeVersion.h 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