File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change 99endif
1010
1111XCPRETTY := $(shell command -v xcpretty)
12- SWIFTCOV := $(shell command -v swiftcov)
13- GCOVR := $(shell command -v gcovr)
1412TEST_ACTIONS := clean build build-for-testing test-without-building
1513
1614default : test
2826 $(BUILD_TOOL) $(BUILD_ARGUMENTS) $(TEST_ACTIONS)
2927endif
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-
5229clean :
5330 $(BUILD_TOOL ) $(BUILD_ARGUMENTS ) clean
54- rm -r coverage
5531
5632repl :
5733 @$(BUILD_TOOL ) $(BUILD_ARGUMENTS ) -derivedDataPath $(TMPDIR ) /SQLite.swift > /dev/null && \
5834 swift -F ' $(TMPDIR)/SQLite.swift/Build/Products/Debug'
5935
6036sloc :
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
You can’t perform that action at this time.
0 commit comments