-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (36 loc) · 1.24 KB
/
makefile
File metadata and controls
44 lines (36 loc) · 1.24 KB
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
.PHONY: test
install:
julia -e 'using Pkg; Pkg.develop(path=".");'
uninstall:
julia -e 'using Pkg; Pkg.rm("LinearAlgebraForCAP");'
test:
julia -e 'using Pkg; Pkg.test("LinearAlgebraForCAP");'
gen:
rm -f ./src/gap/*.autogen.jl
rm -f ./src/gap/*/*.autogen.jl
rm -f ./docs/src/*.autogen.md
./.generate.sh -e gen_full=0
gen-full:
rm -f ./src/gap/*.autogen.jl
rm -f ./src/gap/*/*.autogen.jl
rm -f ./docs/src/*.autogen.md
./.generate.sh -e gen_full=1
git-commit:
@if git diff Project.toml | grep -q '^+version ='; then \
echo -e "\033[32mCommitting changes in \"LinearAlgebraForCAP\"\033[0m"; \
git add .; \
git commit \
-m "Update to GAP's $$(grep "# Transpiled from GAP's" "Project.toml" | cut -d ' ' -f 5-)" \
-m "Bump Version to v$$(grep "version = " "Project.toml" | cut -d '"' -f 2)" \
; \
else \
echo -e "\033[33mNo changes in \"LinearAlgebraForCAP\" to commit or no version bump detected.\033[0m"; \
fi
codecov:
julia --project=. -e 'using Coverage; using Pkg; Pkg.test(coverage=true); LCOV.writefile("coverage.lcov", process_folder(pwd()));'
genhtml -o coverage_report coverage.lcov
open coverage_report/index.html
clean-codecov:
find . -type f -name "*.jl.*.cov" -exec rm -f {} +
rm -f coverage.lcov
rm -rf coverage_report