-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathMakefile
58 lines (43 loc) · 1.08 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
BUILD_DIR = build
BUILD_PROJECT ?= MapboxMobileEvents.xcodeproj
BUILD_SCHEME ?= MapboxMobileEvents
TEST_SCHEME ?= MMETestHost
TEST_DESTINATION ?= 'platform=iOS Simulator,name=iPhone 11,OS=latest'
TEST_FLAGS ?= GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
XCODEBUILD ?= xcodebuild
DESTINATION ?= name=Generic iOS Device
# Build Driver Targets
.PHONY: prep
prep:
@echo "TODO prep Project"
.PHONY: build
build:
$(XCODEBUILD) -scheme "$(BUILD_SCHEME)" build
.PHONY: test
test:
$(XCODEBUILD) -project "$(BUILD_PROJECT)" -scheme "$(TEST_SCHEME)" build test -destination $(TEST_DESTINATION) $(TEST_FLAGS)
.PHONY: docs
docs:
@echo "TODO docs Project"
.PHONY: pack
pack:
@echo "TODO pack Project"
.PHONY: farm
farm:
@echo "TODO farm Project"
.PHONY: stage
stage:
@echo "TODO stage Project"
.PHONY: clean
clean:
@[ -d $(BUILD_DIR) ] && rm -fr $(BUILD_DIR) || true
.PHONY: lint
lint:
pod lib lint
.PHONY: preflight-checks
preflight-checks: lint
# local and ci build Targets
.DEFAULT: build
run: prep build test docs pack
.PHONY: ci-build
ci-run: tools build