-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (59 loc) · 1.86 KB
/
Makefile
File metadata and controls
80 lines (59 loc) · 1.86 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
BRANCH:=`git rev-parse --abbrev-ref HEAD` ## get active GIT branch
BRANCH:=$(strip $(BRANCH))
TAG=$(BRANCH)
VERSION="v3.5.0-beta"
ARG=
build: doc
R -e "devtools::build()"
doc:
R -e "devtools::document()"
R -e "devtools::build_vignettes()"
check:
R -e "devtools::check()"
depend:
Rscript dev/install_dependencies.R
install: depend
R CMD INSTALL .
VERSION = "v3.4.4"
install.rcmd:
Rscript dev/install_playbase.R 'rcmd'
install.local:
Rscript dev/install_playbase.R 'local'
install.full:
sudo sh dev/install_ubuntu.sh
Rscript dev/write_description.R
Rscript dev/install_playbase.R 'github'
tags:
git tag -f -a $(VERSION) -m 'version $(VERSION)'
git push && git push --tags
clean:
rm `find . -name '.#*' -o -name '#*' -o -name '*~'`
# filter by file name (eg. ensembl) will run tests inside file test-pgx-ensembl.R
filter=
test:
R -e "devtools::test(filter='$(filter)')"
FORCE: ;
docker.os:
docker build $(ARG) --no-cache -f dev/Dockerfile.os \
-t playbase-os . 2>&1 | tee docker-os.log
docker.rbase:
docker build $(ARG) --no-cache -f dev/Dockerfile.rbase \
-t playbase-rbase . 2>&1 | tee docker-rbase.log
docker.pkg:
docker build $(ARG) -f dev/Dockerfile \
-t playbase-pkg . 2>&1 | tee docker.log
## we need to squash the layer to minimize the size but also to hide
## the use of any temporary tokens. Install docker-squash from pipx.
docker.squash:
@if [ -z `command -v pipx &> /dev/null` ]; then \
echo ERROR: please install docker-squash; \
exit 1; \
fi
docker-squash playbase-pkg -t bigomics/playbase:latest
docker: docker.os docker.rbase docker.pkg docker.squash
@echo "% building playbase docker..."
docker.bash:
@echo bash into playbase docker
docker run -it bigomics/playbase /bin/bash
git.prune.branches:
git fetch -p && git branch --merged | grep -v '*' | grep -v 'main' | grep -v 'devel' | xargs git branch -d