forked from lyft/mapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (73 loc) · 1.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Install Tasks
export HOMEBREW_NO_AUTO_UPDATE = 1
install-lint:
brew remove swiftlint --force || true
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/a97c85994a3f714355a20511b4df3a546ae809cf/Formula/swiftlint.rb
install-carthage:
brew remove carthage --force || true
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/af232506f5f1879af77852d6297b1e2a5b040270/Formula/carthage.rb
install-pods-%:
bundle install
install-%:
true
# Run Tasks
test-lint:
swiftlint lint --strict 2>/dev/null
test-iOS:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-configuration Release \
-destination "name=iPhone 11 Pro Max" \
test \
| xcpretty -ct
test-macOS:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-configuration Release \
test \
| xcpretty -ct
test-tvOS:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-configuration Release \
-destination "name=Apple TV 4K" \
test \
| xcpretty -ct
test-carthage:
set -o pipefail && \
carthage build \
--no-skip-current \
--configuration Release \
--verbose \
| xcpretty -ct
ls Carthage/build/Mac/Mapper.framework
ls Carthage/build/iOS/Mapper.framework
ls Carthage/build/tvOS/Mapper.framework
ls Carthage/build/watchOS/Mapper.framework
test-coverage:
find build -name "*.xcresult" -exec rm -rf "{}" \; || true
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-derivedDataPath build \
-enableCodeCoverage YES \
test \
| xcpretty -ct
Resources/coverage.sh build
test-swiftpm-macOS:
swift test
test-pods-%:
cd $(shell pwd)/Tests/PodTests/$* && \
bundle exec pod install && \
xcodebuild \
-workspace $*.xcworkspace \
-scheme $* \
-destination "name=iPhone 11 Pro Max" \
clean build