Skip to content

Commit f1cea8b

Browse files
committed
Future-proof Travis-CI skipping
1 parent b19812e commit f1cea8b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/testthat/test_wage_inflator.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
context("Wage inflator")
22

3-
expect_equal <- function(left, right, check.attributes = FALSE) {
3+
expect_equal <- function(left, right, check.attributes = FALSE, ...) {
44
testthat::expect_equal(unclass(left),
55
unclass(right),
6-
check.attributes = FALSE)
6+
check.attributes = FALSE, ...)
77
}
88

99
test_that("Default from_fy and to_fy", {
@@ -107,8 +107,10 @@ test_that("ABS connection", {
107107
skip_if_not(packageVersion("rsdmx") >= package_version("0.5.10"))
108108

109109
# Minimize false on errors on travis
110-
skip_if(getRversion() >= "3.6")
111-
skip_if(getRversion() <= "3.4")
110+
# Skip travis tests (except oldrel)
111+
nottravis_or_oldrel <-
112+
Sys.getenv("TRAVIS_R_VERSION_STRING") %in% c("", "oldrel")
113+
skip_if_not(nottravis_or_oldrel)
112114

113115
internal_ans <- wage_inflator(from_fy = "2012-13",
114116
to_fy = "2013-14",

0 commit comments

Comments
 (0)