Skip to content

Commit 5ade4c5

Browse files
committed
Log failures on CI remotes
Closes #79
1 parent 630a29d commit 5ade4c5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
shift + ENTER = Validate active group
99
ESC = Quit app
1010

11+
- Failure diffs are now logged in `vdiffr.Rout.fail` when the `CI`
12+
environment variable is set. This makes it easier to investigate
13+
remote failures on Travis etc (#79).
14+
15+
1116
# vdiffr 0.3.1
1217

1318
This release makes vdiffr compatible with ggplot2 3.2.0. It also

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ push_log <- function(case) {
113113
cat_line(file = file, "", !!!diff_lines, "")
114114
}
115115
is_checking <- function() {
116-
!nzchar(Sys.getenv("NOT_CRAN"))
116+
nzchar(Sys.getenv("CI")) || !nzchar(Sys.getenv("NOT_CRAN"))
117117
}
118118

119119
diff_lines <- function(case,

0 commit comments

Comments
 (0)