forked from galaxyproject/gxadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 1.4 KB
/
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
PARTS=$(sort $(wildcard parts/*.sh))
TMP := $(shell mktemp)
all: gxadmin test docs
docs:
@cat $(PARTS) > .tmpgxadmin
@chmod +x .tmpgxadmin
./.tmpgxadmin meta cmdlist
@rm -f .tmpgxadmin
gxadmin: $(PARTS)
cat $(PARTS) > gxadmin
chmod +x gxadmin
test:
@cat $(PARTS) > .tmpgxadmin
@chmod +x .tmpgxadmin
./test.sh
@rm -f .tmpgxadmin
shellcheck: gxadmin
@# SC2001 - stylistic, no thank you!
@# SC2119 - literally no clue
@# SC2120 - literally no clue
@# SC2129 - stylistic, maybe should switch to
shellcheck -s bash -f gcc --exclude SC2001,SC2120,SC2119,SC2129,SC2044 gxadmin
shellcheck -s bash -f gcc --exclude SC2001,SC2120,SC2119,SC2129,SC2044 gxadmin-complete.sh
shellcheck-parts:
@# SC2001 - stylistic, no thank you!
@# SC2119 - literally no clue
@# SC2120 - literally no clue
@# SC2129 - stylistic, maybe should switch to
@# SC2154 - unnecessary due to split
@# SC2034 - unnecessary due to split
shellcheck -s bash -f gcc --exclude SC2001,SC2120,SC2119,SC2129,SC2044,SC2154,SC2034 parts/[023456789]*
.PHONY: test shellcheck shellcheck-parts docs
RESULTS := $(wildcard .asv/results/*) $(wildcard .asv/results/*/*)
# Update benchmarking script
benchmarks/benchmarks.py: benchmarks.sh gxadmin
benchmarks.sh > benchmarks/benchmarks.py
# Run the benchmarks
benchmark: benchmarks/benchmarks.py
asv run
git add .asv
# Collect results
benchmark-publish: $(RESULTS)
asv publish -o docs/benchmarking/