forked from pointfreeco/swift-snapshot-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (29 loc) · 706 Bytes
/
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
xcodeproj:
PF_DEVELOP=1 swift run xcodegen
test-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.2 \
bash -c 'make test-swift'
test-macos:
set -o pipefail && \
xcodebuild test \
-scheme SnapshotTesting_macOS \
-destination platform="macOS" \
test-ios:
set -o pipefail && \
xcodebuild test \
-scheme SnapshotTesting_iOS \
-destination platform="iOS Simulator,name=iPhone 11 Pro Max,OS=13.3" \
test-swift:
swift test \
--enable-pubgrub-resolver \
--parallel
test-tvos:
set -o pipefail && \
xcodebuild test \
-scheme SnapshotTesting_tvOS \
-destination platform="tvOS Simulator,name=Apple TV 4K,OS=13.3" \
test-all: test-linux test-macos test-ios