forked from pointfreeco/swift-overture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 802 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
imports = \
@testable import OvertureTests;
xcodeproj:
swift package generate-xcodeproj --xcconfig-overrides=Development.xcconfig
linux-main:
sourcery \
--sources ./Tests/ \
--templates ./.sourcery-templates/ \
--output ./Tests/ \
--args testimports='$(imports)' \
&& mv ./Tests/LinuxMain.generated.swift ./Tests/LinuxMain.swift
test-linux: linux-main
docker build --tag overture-testing . \
&& docker run --rm overture-testing
test-macos:
set -o pipefail && \
xcodebuild test \
-scheme Overture-Package \
-destination platform="macOS" \
| xcpretty
test-ios:
set -o pipefail && \
xcodebuild test \
-scheme Overture-Package \
-destination platform="iOS Simulator,name=iPhone 8,OS=11.3" \
| xcpretty
test-swift:
swift test
test-all: test-linux test-macos test-ios