Run the playbook using:
ansible-playbook -i localhost, r-ci.yml
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
Default is to run static code analysis of the R code using
lintr. Set r_ci_lintr=false
to disable
this check.
Example:
ansible-playbook -i localhost, --extra-vars "r_ci_lintr=false" r-ci.yml
Use the r_ci_covr
variable to run covr 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 Pipelinescodecov
: upload the result to codecov.iocoveralls
: upload the result to coverallsgitlab
: create report for GitLabstandalone
: 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