-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 583 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 583 Bytes
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
.PHONY: magic
PROJ = ValueCodable
proj = $(shell echo $(PROJ) | tr A-Z a-z)
clean:
rm -rf .build
xcodeproj:
swift package generate-xcodeproj
docker-build:
docker build --tag $(proj) .
test-linux: magic docker-build
docker run --rm $(proj) swift test
test-macos:
set -o pipefail && \
xcodebuild test \
-scheme $(PROJ)-Package \
-destination platform="macOS" \
test-swift:
swift test
test-all: test-linux test-macos
magic:
sourcery --templates ./.sourcery --sources Tests --args testimports='@testable import '"$(PROJ)"Tests --output Tests/LinuxMain.swift