diff --git a/.travis.yml b/.travis.yml index afd5dfa..89f1612 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: - sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable - sudo apt-get -qq update - sudo apt-get install -y libgdal-dev libproj-dev python-protobuf libprotoc-dev libprotobuf-dev libv8-dev librsvg2-dev libmpfr-dev + - export flipFormat_BRANCH_NAME=DS-83 - rcode="tfile <- tempfile(); capture.output(res<-devtools::test(), file = tfile); out <- readLines(tfile); cat(out, sep = '\n'); " - rcode+="n.fail <- as.numeric(sub('Failed:[[:space:]]', '', out[grep('Failed:[[:space:]]', out)])); " - rcode+="res <- as.data.frame(res); out <- data.frame(file = unlist(res[['file']]), warning = unlist(res[['warning']])); " @@ -47,6 +48,6 @@ notifications: # Warning notifications and downstream package builds are implemented # by calling R functions so they can be updated in this package without # committing a new change to .travis.yml in each repository -after_success: +after_success: - Rscript -e "require(flipDevTools); NotifyWarnings(); TriggerDownstreamBuilds()" - travis_wait Rscript -e "flipDevTools::CheckCoverage()" diff --git a/tests/testthat/test-missingdata.R b/tests/testthat/test-missingdata.R index bafa3de..09ad306 100644 --- a/tests/testthat/test-missingdata.R +++ b/tests/testthat/test-missingdata.R @@ -14,7 +14,7 @@ test_that("Missing options", expect_equal(341, suppressWarnings(nrow(EstimationData(Overall ~ Branch, bank, missing = "Exclude cases with missing data")$estimation.data))) expect_equal(823, nrow(EstimationData(Overall ~ Branch, bank, missing = "Use partial data")$estimation.data)) expect_equal(823, nrow(EstimationData(Overall ~ Branch, bank, missing = "Use partial data (pairwise correlations)")$estimation.data)) - expet_equal(759, nrow(EstimationData(Overall ~ Fees + Interest, bank, missing = "Dummy variable adjustment")$estimation.data)) + expect_equal(759, nrow(EstimationData(Overall ~ Fees + Interest, bank, missing = "Dummy variable adjustment")$estimation.data)) }) test_that("Infinity",