11 changed files with 28 additions and 49 deletions
@ -1,23 +1,5 @@ |
|||
language: c |
|||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r |
|||
|
|||
before_install: |
|||
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh |
|||
- chmod 755 ./travis-tool.sh |
|||
- ./travis-tool.sh bootstrap |
|||
|
|||
install: |
|||
- ./travis-tool.sh install_github plyr |
|||
- ./travis-tool.sh install_deps |
|||
|
|||
script: ./travis-tool.sh run_tests |
|||
|
|||
on_failure: |
|||
- ./travis-tool.sh dump_logs |
|||
|
|||
branches: |
|||
except: |
|||
- /-expt$/ |
|||
notifications: |
|||
email: |
|||
on_success: change |
|||
on_failure: change |
|||
language: R |
|||
sudo: false |
|||
cache: packages |
|||
|
@ -0,0 +1 @@ |
|||
utils::globalVariables(".") |
@ -1,6 +1,8 @@ |
|||
context("basic functionality") |
|||
test_that("we can do something", { |
|||
|
|||
#expect_that(some_function(), is_a("data.frame")) |
|||
expect_that(dim(get_flu_data("hhs", years=2015)), equals(c(520L, 15L))) |
|||
|
|||
expect_that(dim(get_state_data(2008)), equals(c(2494L, 8L))) |
|||
|
|||
}) |
|||
|
Loading…
Reference in new issue