From cd3bdaf4fe85ca56a3a63c3ade21c99fa65d2bcd Mon Sep 17 00:00:00 2001 From: Alex Chubaty Date: Fri, 17 Nov 2017 13:23:26 -0700 Subject: [PATCH] split tests to avoid travis-ci timeout errors suggested by http://randyzwitch.com/travisci-10minute-timeout-build-error/ --- tests/test-1-pkgAvail.R | 4 ++++ tests/test-2-pkgDep.R | 4 ++++ tests/test-3&4-makeRepo.R | 4 ++++ tests/test-5-updateRepo.R | 4 ++++ tests/test-6-getCranDescription.R | 4 ++++ tests/test-7-add-GithubPackage.R | 4 ++++ tests/test-all.R | 3 --- 7 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 tests/test-1-pkgAvail.R create mode 100644 tests/test-2-pkgDep.R create mode 100644 tests/test-3&4-makeRepo.R create mode 100644 tests/test-5-updateRepo.R create mode 100644 tests/test-6-getCranDescription.R create mode 100644 tests/test-7-add-GithubPackage.R delete mode 100644 tests/test-all.R diff --git a/tests/test-1-pkgAvail.R b/tests/test-1-pkgAvail.R new file mode 100644 index 0000000..8595e06 --- /dev/null +++ b/tests/test-1-pkgAvail.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "pkgAvail") +} diff --git a/tests/test-2-pkgDep.R b/tests/test-2-pkgDep.R new file mode 100644 index 0000000..f6194ef --- /dev/null +++ b/tests/test-2-pkgDep.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "pkgDep") +} diff --git a/tests/test-3&4-makeRepo.R b/tests/test-3&4-makeRepo.R new file mode 100644 index 0000000..87b219a --- /dev/null +++ b/tests/test-3&4-makeRepo.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "makeRepo") +} diff --git a/tests/test-5-updateRepo.R b/tests/test-5-updateRepo.R new file mode 100644 index 0000000..282da49 --- /dev/null +++ b/tests/test-5-updateRepo.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "updateRepo") +} diff --git a/tests/test-6-getCranDescription.R b/tests/test-6-getCranDescription.R new file mode 100644 index 0000000..58c027d --- /dev/null +++ b/tests/test-6-getCranDescription.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "getCranDescription") +} diff --git a/tests/test-7-add-GithubPackage.R b/tests/test-7-add-GithubPackage.R new file mode 100644 index 0000000..1f08477 --- /dev/null +++ b/tests/test-7-add-GithubPackage.R @@ -0,0 +1,4 @@ +if (require(testthat)) { + source(file.path("testthat", "helpers.R")) + test_check("miniCRAN", filter = "addGithubPackage") +} diff --git a/tests/test-all.R b/tests/test-all.R deleted file mode 100644 index 60f9b5a..0000000 --- a/tests/test-all.R +++ /dev/null @@ -1,3 +0,0 @@ -if(require(testthat)) { - test_check("miniCRAN") -} \ No newline at end of file