-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 1.07 KB
/
Makefile
File metadata and controls
24 lines (17 loc) · 1.07 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
scripts_init:
julia --startup-file=no --project=scripts/ -e 'using Pkg; Pkg.instantiate(); Pkg.update(); Pkg.precompile();'
project_init:
julia --startup-file=no --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.update(); Pkg.precompile();'
lint: scripts_init ## Code formating check
julia --startup-file=no --project=scripts/ scripts/format.jl
format: scripts_init ## Code formating run
julia --startup-file=no --project=scripts/ scripts/format.jl --overwrite
bench: ## Run benchmark, use `make bench branch=...` to test against a specific branch
julia --startup-file=no --project=scripts/ scripts/bench.jl $(branch)
doc_init:
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
docs: doc_init ## Generate documentation
julia --project=docs/ docs/make.jl
.PHONY: test
test: ## Run tests (make test test_args="folder1:test1 folder2:test2" to run reduced testsets. RUN_AQUA=false make test ... to skip slow Aqua checks enabled by default)
julia -e 'import Pkg; Pkg.activate("."); Pkg.test(test_args = split("$(test_args)") .|> string)'