-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·46 lines (37 loc) · 917 Bytes
/
Makefile
File metadata and controls
executable file
·46 lines (37 loc) · 917 Bytes
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
all: check coverage
.PHONY: \
check \
clean \
coverage \
format \
init \
install \
setup \
tests
check:
R -e "library(styler)" \
-e "resumen <- style_dir('R')" \
-e "resumen <- rbind(resumen, style_dir('tests'))" \
-e "resumen <- rbind(resumen, style_dir('tests/testthat'))" \
-e "any(resumen[[2]])" \
| grep FALSE
clean:
rm --force *.tar.gz
rm --force --recursive tests/testthat/_snaps
rm --force NAMESPACE
coverage: setup
Rscript tests/testthat/coverage.R
format:
R -e "library(styler)" \
-e "style_dir('R')" \
-e "style_dir('tests')" \
-e "style_dir('tests/testthat')"
init: setup tests
setup: clean install
install:
R -e "devtools::document()" && \
R CMD build . && \
R CMD check templater_0.1.0.tar.gz && \
R CMD INSTALL templater_0.1.0.tar.gz
tests:
Rscript -e "devtools::test(stop_on_failure = TRUE)"