Skip to content

Commit

Permalink
Updated travis build skipping tests that use samplepkg
Browse files Browse the repository at this point in the history
  • Loading branch information
fikovnik committed May 6, 2018
1 parent f089987 commit 875d075
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: r
cache: packages
warnings_are_errors: false
r:
- 3.4

env:
global:
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-decorate.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ test_that("decorator works with S4 methods", {
standardGeneric("sides")
})

setClass("Shape")
setClass("Polygon", representation(sides = "integer"), contains = "Shape")
setClass("Triangle", contains = "Polygon")
setClass("Shape", where=environment())
setClass("Polygon", where=environment(), representation(sides="integer"), contains="Shape")
setClass("Triangle", where=environment(), contains="Polygon")

setMethod("sides", where=environment(), signature(object = "Polygon"), function(object) object@sides)
setMethod("sides", where=environment(), signature(object="Polygon"), function(object) object@sides)
setMethod("sides", where=environment(), signature("Triangle"), function(object) 3)

tracer <- create_sequence_tracer()
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-extract-package-code.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ context("extract-package-code")

test_that("extract package code work on sample package", {
skip_on_cran()
skip_on_travis()

tmp <- tempfile()
on.exit(unlink(tmp, recursive=TRUE))
Expand Down
8 changes: 8 additions & 0 deletions tests/testthat/test-genthat-samplepkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ context("genthat on sample package")

test_that("trace_package works on a single file from sample package", {
skip_on_cran()
skip_on_travis()

with_test_pkgs({
output_dir <- tempfile()
f1 <- tempfile()
Expand All @@ -26,6 +28,8 @@ test_that("trace_package works on a single file from sample package", {

test_that("trace_package works on a sample package", {
skip_on_cran()
skip_on_travis()

with_test_pkgs({
output_dir <- tempfile()
f1 <- tempfile()
Expand Down Expand Up @@ -84,6 +88,8 @@ test_that("trace_package works on a sample package", {

test_that("gen_from_package works on a sample package", {
skip_on_cran()
skip_on_travis()

with_test_pkgs({
output_dir <- tempfile()

Expand All @@ -106,6 +112,8 @@ test_that("gen_from_package works on a sample package", {

test_that("gen_from_package works on a sample package", {
skip_on_cran()
skip_on_travis()

with_test_pkgs({
output_dir <- tempfile()

Expand Down

0 comments on commit 875d075

Please sign in to comment.