Skip to content

Commit

Permalink
adding building
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Jun 21, 2017
1 parent c594a18 commit c6b1530
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ os:
- linux
- osx

after_success: Rscript -e 'covr::coveralls()'
after_success:
- packname=`Rscript -e 'cat(read.dcf("DESCRIPTION")[, "Package"])'`
- cd ../
- travis_wait 100 R CMD INSTALL --build ${packname}
- cd ${packname}
- Rscript -e 'covr::coveralls()'

deploy:
provider: releases
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ghtravis
Type: Package
Title: Interfaces with GitHub API and Travis
Version: 0.4.5.1
Version: 0.4.6
Author: John Muschelli
Maintainer: John Muschelli <muschellij2@gmail.com>
Description: Interfaces and compares things on 'GitHub'
Expand Down
14 changes: 14 additions & 0 deletions R/package_name.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#' Get Package name
#'
#' @param path Path to DESCRIPTION file
#'
#' @return Name of Packge
#' @export
#'
#' @examples
#' path = example_description_file()
#' package_name(path)
package_name = function(path = "DESCRIPTION") {
dcf = read_dcf(path = path)$dcf
dcf$Package
}

0 comments on commit c6b1530

Please sign in to comment.