-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
25 lines (19 loc) · 645 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
default: render
version:
R -q -e "library('codecheck'); sessionInfo();"
render: version
R -q -e "codecheck::register_render()"
clean: version
rm -r -f .cache/R
R -q -e "codecheck::register_clear_cache();"
check: clean
R -q -e "codecheck::register_check(); warnings();"
# automated build is active via GitHub Action
image_build:
docker build --tag codecheckers/register:latest --no-cache .
image_push: image_build
docker push codecheckers/register:latest
.phony: image_build, image_push
image_render:
docker pull codecheckers/register:latest
docker run --rm -it --user rstudio -v $(shell pwd):/register codecheckers/register:latest