-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
57 lines (43 loc) · 977 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
49
50
51
52
53
54
55
56
57
SCHEME = Tablier
.PHONY: build
build: build/spm
.PHONY: build/spm
build/spm:
swift build
.PHONY: build/xcode
build/xcode:
xcodebuild build \
-scheme $(SCHEME) \
-destination 'platform=macOS'
.PHONY: test
test: test/spm
.PHONY: test/spm
test/spm:
swift test --parallel
.PHONY: test/xcode
test/xcode:
xcodebuild test \
-scheme $(SCHEME) \
-destination 'platform=macOS'\
-parallel-testing-enabled YES
.PHONY: test/examples
test/examples:
swift test --package-path Examples
.PHONY: test/docker
test/docker: clean/spm linuxmain
docker run -it --rm -v `pwd`:/tablier -w /tablier swift:5.0 swift test
.PHONY: linuxmain
linuxmain:
swift test --generate-linuxmain
LATEST_VERSION = $(shell git describe --tags `git rev-list --tags --max-count=1`)
.PHONY: clean
clean: clean/xcode clean/spm
$(RM) -r $(PROJECT)
.PHONY: clean/xcode
clean/xcode:
xcodebuild clean -scheme $(SCHEME)
.PHONY: clean/spm
clean/spm:
swift package clean
.PHONY: .FORCE
.FORCE: