-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (51 loc) · 1.51 KB
/
Copy pathMakefile
File metadata and controls
63 lines (51 loc) · 1.51 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
SHELL := /bin/bash
.DEFAULT_GOAL := verify
HOST_ARCH := $(shell uname -m)
RELEASE_VERSION ?= $(shell sed -n '1p' VERSION)
BUILD_NUMBER ?= 1
VERIFY_JOBS ?= 4
TEST_DERIVED_DATA ?= DerivedData/Test
BUILD_DERIVED_DATA ?= DerivedData/Build
.PHONY: project test core-test app-test release-check build verify verify-lanes verify-product-lanes release clean
project:
./scripts/generate-project.sh
test: core-test app-test
core-test:
swift test --parallel
app-test: project
xcodebuild \
-project Slopwake.xcodeproj \
-scheme Slopwake \
-configuration Debug \
-destination 'platform=macOS,arch=$(HOST_ARCH)' \
-derivedDataPath $(TEST_DERIVED_DATA) \
-disableAutomaticPackageResolution \
-skipPackageUpdates \
CODE_SIGN_IDENTITY=- \
ONLY_ACTIVE_ARCH=YES \
ARCHS=$(HOST_ARCH) \
test
release-check:
./scripts/check-release-contract.sh
build: project
xcodebuild \
-project Slopwake.xcodeproj \
-scheme Slopwake \
-configuration Release \
-destination 'generic/platform=macOS' \
-derivedDataPath $(BUILD_DERIVED_DATA) \
-disableAutomaticPackageResolution \
-skipPackageUpdates \
CODE_SIGNING_ALLOWED=NO \
MARKETING_VERSION=$(RELEASE_VERSION) \
CURRENT_PROJECT_VERSION=$(BUILD_NUMBER) \
build
release: build
RELEASE_VERSION=$(RELEASE_VERSION) ./scripts/release.sh
verify:
+$(MAKE) --no-print-directory -j$(VERIFY_JOBS) verify-lanes
verify-lanes: verify-product-lanes release-check
verify-product-lanes: core-test app-test build
clean:
swift package clean
rm -rf DerivedData Slopwake.xcodeproj