-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
70 lines (57 loc) · 1.47 KB
/
Taskfile.yml
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
version: "3"
vars:
PKGNAME: qualpalr
PKGSRC: .
tasks:
clean:
cmds:
- rm -rf src/*.o src/*.so
document:
cmds:
- Rscript -e 'devtools::document(roclets = c("rd", "collate", "namespace"))'
compile-attributes:
cmds:
- Rscript -e 'Rcpp::compileAttributes()'
build:
deps: [document, compile-attributes]
cmds:
- R CMD build --no-manual .
build-cran:
deps: [document, compile-attributes]
cmds:
- R CMD build .
install:
deps: [compile-attributes]
cmds:
- R CMD INSTALL --no-multiarch --with-keep.source .
clean-install:
deps: [document, compile-attributes]
cmds:
- R CMD INSTALL --preclean --no-multiarch --with-keep.source .
check:
deps: [document, compile-attributes]
cmds:
- Rscript -e 'devtools::check()'
test:
deps: [install]
cmds:
- Rscript -e 'devtools::test()'
readme:
cmds:
- Rscript -e 'rmarkdown::render("README.qmd")'
- rm -rf README.html
vignettes:
cmds:
- Rscript -e 'devtools::build_vignettes()'
update-lib:
desc: Fetch current release of c++ library component
vars:
API_URL: https://api.github.com/repos/jolars/qualpal/releases/latest
RELEASE:
sh: curl -s {{.API_URL}} | grep "tarball_url" | cut -d '"' -f 4
cmds:
- mkdir -p tmp
- curl -L {{.RELEASE}} | tar -xz --strip-components=1 -C tmp
- rm -rf src/qualpal
- cp -ri tmp/src/qualpal src/
- rm -rf tmp