forked from pointfreeco/swift-prelude
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (40 loc) · 1.15 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
imports = \
@testable import PreludeTests; \
@testable import EitherTests; \
@testable import FrpTests; \
@testable import NonEmptyTests; \
@testable import OpticsTests; \
@testable import ReaderTests; \
@testable import StateTests; \
@testable import TupleTests; \
@testable import ValidationNearSemiringTests; \
@testable import ValidationSemigroupTests; \
@testable import WriterTests;
xcodeproj:
swift package generate-xcodeproj --xcconfig-overrides=Development.xcconfig
xed .
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 prelude-testing . \
&& docker run --rm prelude-testing
test-macos: xcodeproj
set -o pipefail && \
xcodebuild test \
-scheme Prelude-Package \
-destination platform="macOS" \
| xcpretty
test-ios: xcodeproj
set -o pipefail && \
xcodebuild test \
-scheme Prelude-Package \
-destination platform="iOS Simulator,name=iPhone 8,OS=11.3" \
| xcpretty
test-swift:
swift test
test-all: test-linux test-mac test-ios