forked from RxSwiftCommunity/RxReachability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (46 loc) · 1.42 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
GITHUB_URL := https://github.com/RxSwiftCommunity/RxReachability/
include .makefiles/ludicrous.mk
include .makefiles/bundler.mk
include .makefiles/ios.mk
PLATFORM := 'iOS'
TEST_SCHEME := 'RxReachability'
WORKSPACE := 'RxReachability-Example/RxReachability_Example.xcworkspace'
DESTINATION := 'platform=iOS Simulator,OS=14.4,name=iPhone 12'
%:
@:
args = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
#> Lint the podspec for upload
pod_lint:
@pod spec lint RxReachability.podspec \
--fail-fast \
--no-clean
#> Publish a podspec to Podspec repo
pod_publish:
@pod repo push RxReachability.podspec \
--private \
--skip-tests \
--allow-warnings
#> Build API documentation; https://github.com/realm/jazzy
jazzy:
@jazzy
#> Markdown API using sourcedocs; https://github.com/eneko/SourceDocs
sourcedocs:
@sourcedocs generate \
--module-name RxReachability \
--output-folder 'docs/reference' \
--collapsible \
--table-of-contents \
--spm-module RxReachability
#> Generate linux unit tests
spm-linuxmain:
swift test --generate-linuxmain
#> Generate docs using sourcedocs through swift pm
spm-docs:
swift run sourcedocs generate --clean --spm-module RxReachability --output-folder docs/reference --module-name-path
#> Build via Swift PM
spm-build:
swift build --disable-sandbox -c release
#> Public cocoapod spec
public-pod:
pod trunk register [email protected] "RxWebKit Maintainers"
pod trunk push RxReachability