Skip to content

Commit

Permalink
attempt to check for 7z on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed Jan 16, 2020
1 parent 49a031f commit 697f944
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ before_install:
- R -q -e 'remotes::install_github("ropenscilabs/tic")'
- R -q -e 'tic::prepare_all_stages()'
- R -q -e 'tic::before_install()'

- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install p7zip; fi

install: R -q -e 'tic::install()'
after_install: R -q -e 'tic::after_install()'
before_script: R -q -e 'tic::before_script()'
Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/test-7z.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context("7z")

test_that("7z is available", {
skip_on_cran()

testthat::expect_true(nhdR:::has_7z()$yes)
})

0 comments on commit 697f944

Please sign in to comment.