forked from iosdevzone/IDZSwiftCommonCrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 1.55 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
REPO=IDZPodspecs
NAME=IDZSwiftCommonCrypto
IOS_VERSION=9.2
PG=README.playground
RSRC_DIR=$(PG)/Resources
XC=xcodebuild
XCPP=xcpretty
CS_FLAGS=CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
$(PG): README.md
playground README.md -p ios
mkdir -p ${RSRC_DIR}
cp Riscal.jpg ${RSRC_DIR}
git config --global push.default simple
git diff-files --exit-code; if [[ "$?" == "1" ]]; then git commit -a -m "Playground update from Travis [ci skip]"; git push; fi
all:
$(XC) build -target "IDZSwiftCommonCrypto (iOS)" $(CS_FLAGS) | xcpretty
$(XC) build -target "IDZSwiftCommonCrypto (OSX)" $(CS_FLAGS) | xcpretty
$(XC) build -target "IDZSwiftCommonCrypto (tvOS)" $(CS_FLAGS) | xcpretty
$(XC) build -target "IDZSwiftCommonCrypto (watchOS)" $(CS_FLAGS) | xcpretty
$(XC) test -scheme "IDZSwiftCommonCrypto (iOS)" -destination 'platform=iOS Simulator,name=iPhone 5' | xcpretty
$(XC) test -scheme "IDZSwiftCommonCrypto (OSX)" | xcpretty
$(XC) test -scheme "IDZSwiftCommonCrypto (tvOS)" -destination 'platform=tvOS Simulator,name=Apple TV'| xcpretty
#
# Build
#
build:
$(XC) build -scheme IDZSwiftCommonCrypto -destination 'platform=iOS Simulator,name=iPhone 6,OS=${OS}' | $(XCPP)
test:
$(XC) test -scheme IDZSwiftCommonCrypto -destination 'platform=iOS Simulator,name=iPhone 6,OS=${OS}' | $(XCPP)
clean:
rm -rf $(PG)
# push tags to GitHub
push_tags:
git push origin --tags
# Lint the podspec
lint_pod:
pod spec lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git
# Push pod to private spec repository
push_pod:
pod trunk push ${NAME}.podspec