-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathMakefile
55 lines (38 loc) · 986 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
prefix ?= /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
repodir = $(shell pwd)
builddir = $(repodir)/.build
build:
@swift package clean
@swift build -c debug $(flags)
build-release:
@swift build -c release --product muter --disable-sandbox
project:
@xed .
release:
@./Scripts/shipIt.sh $(version)
install: build-release
@install -d "$(bindir)" "$(libdir)"
@install "$(builddir)/release/muter" "$(bindir)"
uninstall:
@rm -rf "$(bindir)/muter"
clean:
@rm -rf .build
run: build
@$(builddir)/debug/muter
test:
@swift test --filter 'muterTests'
acceptance-test: build
@./AcceptanceTests/runAcceptanceTests.sh
regression-test: build
@./RegressionTests/runRegressionTests.sh
mutation-test: clean
muter
# ci
ci-regression-test: build
@./Scripts/ci/regression/run_regression_tests.sh
ci-test: build
@./Scripts/ci/pull\ request/run_unit_test.sh
@./Scripts/ci/pull\ request/extract_coverage.sh
.PHONY: build clean test run install uninstall release