forked from r-lib/covr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (18 loc) · 904 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
27
RCHECKER=docker_checker
FILTER=
# to install test packages, code must be compiled inside src/ dir,
# that may cause problems for docker user docker
# so we grant all permissions
fix-permission-tests:
chmod -R a+rwx tests
build-docker-checker:
docker build -t $(RCHECKER) docker_checker
run-rocker: build-docker-checker
-docker rm $(RCHECKER)
docker run --rm -ti -v $(PWD)/..:/home/docker $(RCHECKER) bash
test: build-docker-checker fix-permission-tests
docker run --rm -ti -v $(PWD)/..:/home/docker $(RCHECKER) Rscript -e 'library(devtools);install("covr");test("covr", "$(FILTER)")'
check: build-docker-checker fix-permission-tests
docker run --rm -ti -v $(PWD)/..:/home/docker $(RCHECKER) Rscript -e 'library(devtools);install("covr");devtools::check("covr")'
rox: build-docker-checker
docker run --rm -ti -v $(PWD)/..:/home/docker $(RCHECKER) Rscript -e 'devtools::document("covr")'