forked from lyft/mapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (67 loc) · 1.87 KB
/
Makefile
File metadata and controls
82 lines (67 loc) · 1.87 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
76
77
78
79
80
81
82
# Install Tasks
install-iOS:
true
install-OSX:
true
install-tvOS:
true
install-lint:
brew install https://raw.githubusercontent.com/Homebrew/homebrew/fffa4b271ba57c7633e8e24cae543a197a9e3e01/Library/Formula/swiftlint.rb
install-carthage:
brew remove carthage --force || true
brew install https://raw.githubusercontent.com/Homebrew/homebrew/b0ea85753ecee494dc97fc9f95c5afb9d0b447be/Library/Formula/carthage.rb
install-coverage:
true
install-oss-osx:
curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/b07054552689910f79b3496221f7421a811f9f70/swiftenv-install.sh | bash
# Run Tasks
test-lint:
swiftlint lint --strict 2>/dev/null
test-iOS:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-destination "name=iPhone 6s" \
test \
| xcpretty -ct
test-OSX:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
test \
| xcpretty -ct
test-tvOS:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-destination "name=Apple TV 1080p" \
test \
| xcpretty -ct
test-carthage:
carthage build --no-skip-current
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:
set -o pipefail && \
xcodebuild \
-project Mapper.xcodeproj \
-scheme Mapper \
-derivedDataPath build \
-enableCodeCoverage YES \
test \
| xcpretty -ct
rm -f coverage.txt
Resources/coverage.sh build
! grep -C 10 "^\s*0" coverage.txt || true
test-oss-osx:
git clone https://github.com/apple/swift-package-manager
cd swift-package-manager && git checkout 6b8ec91
. ~/.swiftenv/init && \
swift-package-manager/Utilities/bootstrap && \
$(PWD)/swift-package-manager/.build/debug/swift-build && \
$(PWD)/swift-package-manager/.build/debug/swift-test