From 326d75121fb6a42e1c2d84c9ea5dc0c923081eae Mon Sep 17 00:00:00 2001 From: Andrew Barbour Date: Tue, 11 Jul 2017 11:13:21 -0700 Subject: [PATCH] Framework --- .Rbuildignore | 1 + .travis.yml | 5 +++++ DESCRIPTION | 3 ++- README.md | 7 +++++-- tests/testthat.R | 4 ++++ tests/testthat/test_ph.R | 1 + 6 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .travis.yml create mode 100644 tests/testthat.R create mode 100644 tests/testthat/test_ph.R diff --git a/.Rbuildignore b/.Rbuildignore index 187eab3..9631088 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,4 @@ NOBUILD ^.*\.Rproj$ ^\.Rproj\.user$ +^\.travis\.yml$ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8d139ac --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r + +language: R +sudo: false +cache: packages diff --git a/DESCRIPTION b/DESCRIPTION index 42cd78f..14f3110 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -25,6 +25,7 @@ Suggests: maps, sp, plyr, - pracma + pracma, + testthat LinkingTo: Rcpp RoxygenNote: 6.0.1 diff --git a/README.md b/README.md index f81878a..8a1342e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -deform -====== +# deform + +Tools for studying crustal deformation + +[![T-CI Build Status](https://travis-ci.org/abarbour/deform.svg?branch=master)](https://travis-ci.org/abarbour/deform) \ No newline at end of file diff --git a/tests/testthat.R b/tests/testthat.R new file mode 100644 index 0000000..5b8da60 --- /dev/null +++ b/tests/testthat.R @@ -0,0 +1,4 @@ +library(testthat) +library(deform) + +test_check("deform") diff --git a/tests/testthat/test_ph.R b/tests/testthat/test_ph.R new file mode 100644 index 0000000..de18328 --- /dev/null +++ b/tests/testthat/test_ph.R @@ -0,0 +1 @@ +context("placeholder") \ No newline at end of file