-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
26 lines (22 loc) · 973 Bytes
/
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
.PHONY: build-diagrams
build-diagrams:
$(eval temp_dir:=$(shell mktemp -d))
$(eval yyyymmdd:=$(shell date '+%Y%m%d'))
git show origin/gh-pages:build-stats-big-merge.csv > $(temp_dir)/build-stats-big-merge.csv
git show origin/gh-pages:build-stats-pgo.csv > $(temp_dir)/build-stats-pgo.csv
scripts/get-build-stats.py --copr-projectname "llvm-snapshots-big-merge-$(yyyymmdd)" | tee -a $(temp_dir)/build-stats-big-merge.csv
scripts/get-build-stats.py --copr-projectname "llvm-snapshots-pgo-$(yyyymmdd)" | tee -a $(temp_dir)/build-stats-pgo.csv
scripts/create-diagrams.py --datafile-big-merge $(temp_dir)/build-stats-big-merge.csv --datafile-pgo $(temp_dir)/build-stats-pgo.csv
xdg-open index.html
.PHONY: test-snapshot-manager
test-snapshot-manager: ci-coverage
# CI recipes
.PHONY: ci-coverage
ci-coverage:
# Ensure previous data won't interfere with the new execution.
coverage erase
coverage run -m pytest
coverage report -m
.PHONY: ci-test
ci-test:
pytest