-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
48 lines (40 loc) · 999 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
36
37
38
39
40
41
42
43
44
45
46
47
48
test-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.3 \
bash -c 'make test-swift'
build-release-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.3 \
bash -c 'make build-release-swift'
test-macos:
set -o pipefail && \
xcodebuild test \
-scheme Gen_macOS \
-destination platform="macOS" \
-derivedDataPath ./.derivedData \
| xcpretty
test-ios:
set -o pipefail && \
xcodebuild test \
-scheme Gen_iOS \
-destination platform="iOS Simulator,name=iPhone 11 Pro Max" \
| xcpretty
test-swift:
swift test --parallel --enable-test-discovery -v
build-release-swift:
swift build --enable-test-discovery -c release
test-playgrounds: test-macos
find . \
-path '*.playground/*' \
-name '*.swift' \
-exec swift -F .derivedData/Build/Products/Debug/ -suppress-warnings {} +
format:
swift format --in-place --recursive \
./Package.swift ./Sources ./Tests
test-all: test-linux test-macos test-ios test-playgrounds