-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (29 loc) · 880 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VERSION = $(shell cat DESCRIPTION | grep Version | sed 's/Version: //')
R = R -q -e
test:
$(R) "devtools::test()"
check:
$(R) "devtools::check()"
build_src:
$(R)"devtools::build()"
build_doc:
$(R) "pkgdown::build_site()"
document:
$(R) "devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))"
install: document
$(R) "devtools::install(upgrade = 'never')"
auth:
docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
build:
docker build -t nextcode/gor-r:${VERSION} .
docker tag nextcode/gor-r:${VERSION} nextcode/gor-r:latest
build_notebook:
docker build -f Dockerfile.rnotebook -t nextcode/gor-r-notebook:${VERSION} .
push:
docker push nextcode/gor-r:${VERSION}
docker push nextcode/gor-r:latest
run:
docker run --rm --name gor-r -p 80:8787 -t nextcode/gor-r:${VERSION}
tag:
git tag ${VERSION}
git push origin --tags