Skip to content

Commit 00b7d3f

Browse files
committed
rm obsolete swiftcov
1 parent 559b796 commit 00b7d3f

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

Makefile

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ else
99
endif
1010

1111
XCPRETTY := $(shell command -v xcpretty)
12-
SWIFTCOV := $(shell command -v swiftcov)
13-
GCOVR := $(shell command -v gcovr)
1412
TEST_ACTIONS := clean build build-for-testing test-without-building
1513

1614
default: test
@@ -28,36 +26,14 @@ else
2826
$(BUILD_TOOL) $(BUILD_ARGUMENTS) $(TEST_ACTIONS)
2927
endif
3028

31-
coverage:
32-
ifdef SWIFTCOV
33-
$(SWIFTCOV) generate --output coverage \
34-
$(BUILD_TOOL) $(BUILD_ARGUMENTS) -configuration Release test \
35-
-- ./SQLite/*.swift
36-
ifdef GCOVR
37-
$(GCOVR) \
38-
--root . \
39-
--use-gcov-files \
40-
--html \
41-
--html-details \
42-
--output coverage/index.html \
43-
--keep
44-
else
45-
@echo gcovr must be installed for HTML output: https://github.com/gcovr/gcovr
46-
endif
47-
else
48-
@echo swiftcov must be installed for coverage: https://github.com/realm/SwiftCov
49-
@exit 1
50-
endif
51-
5229
clean:
5330
$(BUILD_TOOL) $(BUILD_ARGUMENTS) clean
54-
rm -r coverage
5531

5632
repl:
5733
@$(BUILD_TOOL) $(BUILD_ARGUMENTS) -derivedDataPath $(TMPDIR)/SQLite.swift > /dev/null && \
5834
swift -F '$(TMPDIR)/SQLite.swift/Build/Products/Debug'
5935

6036
sloc:
61-
@zsh -c "grep -vE '^ *//|^$$' SQLite/*/*.{swift,h,m} | wc -l"
37+
@zsh -c "grep -vE '^ *//|^$$' Sources/**/*.{swift,h,m} | wc -l"
6238

63-
.PHONY: test coverage clean repl sloc
39+
.PHONY: test clean repl sloc

0 commit comments

Comments
 (0)