Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stewid/ansible-r-ci
An Ansible playbook to check an R package
https://github.com/stewid/ansible-r-ci
Last synced: 9 days ago
JSON representation
An Ansible playbook to check an R package
- Host: GitHub
- URL: https://github.com/stewid/ansible-r-ci
- Owner: stewid
- License: gpl-3.0
- Created: 2023-01-10T20:46:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T06:21:46.000Z (almost 2 years ago)
- Last Synced: 2024-11-12T04:02:05.928Z (2 months ago)
- Homepage: https://stewid.github.io/ansible-r-ci
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-r-ci
Run the playbook using:
```
ansible-playbook -i localhost, r-ci.yml
```### System requirements
Use the `sysreqs` variable to specify a comma separated list of system
requirements that must be present.
Example:
```
ansible-playbook -i localhost, --extra-vars "sysreqs=gdal-devel,geos-devel,proj-devel,sqlite-devel" r-ci.yml
```### Static code analysis of R code
Default is to run static code analysis of the R code using
[lintr](https://lintr.r-lib.org/). Set `r_ci_lintr=false` to disable
this check.
Example:
```
ansible-playbook -i localhost, --extra-vars "r_ci_lintr=false" r-ci.yml
```### Code coverage
Use the `r_ci_covr` variable to run [covr](https://covr.r-lib.org/) on
a package and specify the target for the code coverage report.
Valid targets are:
- `azure`: output the result so it is available on Azure Pipelines
- `codecov`: upload the result to codecov.io
- `coveralls`: upload the result to coveralls
- `gitlab`: create report for GitLab
- `standalone`: output the result to a local file 'covr.html'Example, run code coverage and output the result to 'covr.html':
```
ansible-playbook -i localhost, --extra-vars "r_ci_covr=standalone" r-ci.yml
```