Skip to content

Commit

Permalink
use_azure_pipelines()
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 10, 2019
1 parent 9ecd802 commit 3fa7c41
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Expand Up @@ -14,3 +14,4 @@
^\.github$
^pkgdown$
^\.covrignore$
^azure-pipelines\.yml$
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -4,6 +4,9 @@
[![CRAN status](https://www.r-pkg.org/badges/version/roxygen2)](https://CRAN.R-project.org/package=roxygen2)
[![Travis build status](https://travis-ci.org/r-lib/roxygen2.svg?branch=master)](https://travis-ci.org/r-lib/roxygen2)
[![Codecov test coverage](https://codecov.io/gh/r-lib/roxygen2/branch/master/graph/badge.svg)](https://codecov.io/gh/r-lib/roxygen2?branch=master)
[![Azure pipelines build status](https://img.shields.io/azure-devops/build/r-lib/roxygen2/2)](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
[![Azure pipelines test status](https://img.shields.io/azure-devops/tests/r-lib/roxygen2/2?color=brightgreen&compact_message)](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
[![Azure pipelines coverage status](https://img.shields.io/azure-devops/coverage/r-lib/roxygen2/2)](https://dev.azure.com/r-lib/roxygen2/_build/latest?definitionId=1&branchName=master)
<!-- badges: end -->

The premise of roxygen2 is simple: describe your functions in comments next to their definitions and roxygen2 will process your source code and comments to automatically generate `.Rd` files in `man/`, `NAMESPACE`, and, if needed, the `Collate` field in `DESCRIPTION`.
Expand Down
12 changes: 12 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,12 @@
# R package
# Test an R package

resources:
repositories:
- repository: r-azure-pipelines
type: github
name: r-lib/r-azure-pipelines
endpoint: r-lib

jobs:
- template: azure-tidyverse.yml@r-azure-pipelines
6 changes: 5 additions & 1 deletion tests/testthat.R
@@ -1,4 +1,8 @@
library(testthat)
library(roxygen2)

test_check("roxygen2")
if (requireNamespace("xml2")) {
test_check("roxygen2", reporter = MultiReporter$new(reporters = list(JunitReporter$new(file = "test-results.xml"), CheckReporter$new())))
} else {
test_check("roxygen2")
}

0 comments on commit 3fa7c41

Please sign in to comment.