Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```