-
Notifications
You must be signed in to change notification settings - Fork 89
/
Makefile
52 lines (43 loc) · 1.68 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
REPO=IDZPodspecs
NAME=IDZSwiftCommonCrypto
IOS_VERSION=11
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 pod locally
lint_lib:
pod lib lint --verbose ${NAME}.podspec --sources=https://github.com/iosdevzone/IDZPodspecs.git
# 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