-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (53 loc) · 1.78 KB
/
Makefile
File metadata and controls
75 lines (53 loc) · 1.78 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
TOP_DIR=.
README=$(TOP_DIR)/README.md
VERSION=$(strip $(shell cat version))
build:
@echo "Building the software..."
@carthage build --platform ios --no-skip-current --cache-builds
init: install dep
@echo "Initializing the repo..."
travis-init: install
@echo "Initialize software required for travis (normally ubuntu software)"
install:
@echo "Install software required for this repo..."
@gem install cocoapods
@gem install xcpretty -N
@brew install swiftlint | true
@gem install jazzy
dep:
@echo "Install dependencies required for this repo..."
@pod install
pre-build: install dep
@echo "Running scripts before the build..."
post-build:
@echo "Running scripts after the build is done..."
@make doc
all: pre-build build post-build
test:
@echo "Running test suites..."
@xcodebuild -workspace ArcBlockSDK.xcworkspace -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' -configuration Debug -scheme ArcBlockSDK build test | xcpretty -c
lint:
@echo "Linting the software..."
@swiftlint
doc:
@echo "Building the documenation..."
@jazzy
precommit: dep lint doc test
travis:
@set -o pipefail
@make precommit
travis-deploy:
@make release
protobuf-codegen:
@echo "Generating protobuf swift codes..."
@protoc --swift_out=ArcBlockSDK/ABSDKCoreKit/ABSDKWalletKit/protobuf/ --proto_path=ArcBlockSDK/ABSDKCoreKit/ABSDKWalletKit/protobuf ArcBlockSDK/ABSDKCoreKit/ABSDKWalletKit/protobuf/*.proto --swift_opt=Visibility=Public
clean:
@echo "Cleaning the build..."
watch:
@echo "Watching templates and slides changes..."
run:
@echo "Running the software..."
deploy: release
@echo "Deploy software into local machine..."
include .makefiles/release.mk
.PHONY: build init travis-init install dep pre-build post-build all test doc precommit travis clean watch run travis-deploy