Skip to content

Commit

Permalink
azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Nov 30, 2019
1 parent 55820d4 commit d6eec9a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
^data-raw$
^CRAN-RELEASE$
^CODE_OF_CONDUCT\.md$
^azure-pipelines\.yml$
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Imports:
Suggests:
covr,
crayon,
testthat (>= 2.1.0)
testthat (>= 2.1.0),
xml2
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.0.1.9000
3 changes: 3 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ knitr::opts_chunk$set(
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/prismatic)](https://CRAN.R-project.org/package=prismatic)
[![Downloads](http://cranlogs.r-pkg.org/badges/prismatic)](https://CRAN.R-project.org/package=prismatic)
[![DOI](https://zenodo.org/badge/205078698.svg)](https://zenodo.org/badge/latestdoi/205078698)
[![Azure pipelines build status](https://img.shields.io/azure-devops/build/EmilHvitfeldt/prismatic/2)](https://dev.azure.com/EmilHvitfeldt/prismatic/_build/latest?definitionId=1&branchName=master)
[![Azure pipelines test status](https://img.shields.io/azure-devops/tests/EmilHvitfeldt/prismatic/2?color=brightgreen&compact_message)](https://dev.azure.com/EmilHvitfeldt/prismatic/_build/latest?definitionId=1&branchName=master)
[![Azure pipelines coverage status](https://img.shields.io/azure-devops/coverage/EmilHvitfeldt/prismatic/2)](https://dev.azure.com/EmilHvitfeldt/prismatic/_build/latest?definitionId=1&branchName=master)
<!-- badges: end -->

The goal of prismatic is to provide color manipulation tools in R, in a intuitive, low-dependency and functional way.
Expand Down
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
library(testthat)
library(prismatic)

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

0 comments on commit d6eec9a

Please sign in to comment.