Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
language: r
warnings_are_errors: true
sudo: required

r:
- oldrel
- release
- devel

- oldrel
- release
- devel
after_success:
- Rscript -e 'covr::codecov()'

- Rscript -e 'covr::codecov()'
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash drat.sh
env:
global:
- CRAN: http://cran.rstudio.com

global:
- CRAN: http://cran.rstudio.com
- secure: GwBlqNSSIqLo/LVUdmTf+214QP4eB6FPykQKJZbhsJF2uFjS5QsotY1TV/G4JG59Fy46HpEHEx/MDPNxXW5o17ud7W6Y6ZfL5+jSaY6x/qFcwROPOTR6mPgNsXDrCvHBifKmugOlBPwXG+27dv8hwFO3XUh2uYCnBASRG7IYyXcpyuWB+Q79px4CAUzFywE/QvfFB5oqLxtcqJO2lyLaFVAFLnOFrJM5ejR9GhmTYKt/Mld32N0AEXgNKuXc24pdyV+pmxZZAPXVb1S5LLPT0PTlmwDhnbmnbOBZe2JsIVCOzrzSXbNk4uAXL2rEV2oa2nwoArztm8cUWGOdWz7T+rClC7lBI2lZzFvKBkui3yAbPffMgDgXsot4PJBd1ID2jVesQw1d3Pj8QjJsUm+sCk1G5uXopBUhcTYtzqOwhWiJ/1HJNZkFxAnSw2cRSHh02sHrZf8IvveuRtQ68yQCNSwTE+/vi3/MEzTjAG5XONwkzrSzn9bTJosUB3CJGJBe2jrDqYq54AJAP2cjE5yXt+n7yRFILaYvENA37s9hJCFeTEGnovzscHYD5v18YGDH+nn+WFxFP1IOFG95eYWH/VdIH0mvGNfhjvR+E8OCdzI7KndR4Wz2RfUFHwvJ9tLvFUkS0Qp/gmszR8GaTkeLgLh8+NBMlyOg11XKyMqodzI=
notifications:
email:
- bob@rud.is
- bob@rud.is
irc:
channels:
- "104.236.112.222#builds"
- 104.236.112.222#builds
nick: travisci
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Contributions to **cloudcidrs** are welcome from anyone and are best sent as pull requests on [the GitHub repository](https://github.com/cloudyr/cloudcidrs/). This page provides some instructions to potential contributors about how to add to the package.

1. Contributions can be submitted as [a pull request](https://help.github.com/articles/creating-a-pull-request/) on GitHub by forking or cloning the [repo](https://github.com/cloudyr/cloudcidrs/), making changes and submitting the pull request.

2. The cloudyr project follows [a consistent style guide](http://cloudyr.github.io/styleguide/index.html) across all of its packages. Please refer to this when editing package code.

3. Pull requests should involve only one commit per substantive change. This means if you change multiple files (e.g., code and documentation), these changes should be committed together. If you don't know how to do this (e.g., you are making changes in the GitHub web interface) just submit anyway and the maintainer will clean things up.

4. All contributions must be submitted consistent with the package license ([AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)).

5. Non-trivial contributions need to be noted in the `Authors@R` field in the [DESCRIPTION](https://github.com/cloudyr/cloudcidrs/blob/master/DESCRIPTION). Just follow the format of the existing entries to add your name (and, optionally, email address). Substantial contributions should also be noted in [`inst/CITATION`](https://github.com/cloudyr/cloudcidrs/blob/master/inst/CITATION).

6. The cloudyr project use royxgen code and documentation markup, so changes should be made to roxygen comments in the source code `.R` files. If changes are made, roxygen needs to be run. The easiest way to do this is a command line call to: `Rscript -e devtools::document()`. Please resolve any roxygen errors before submitting a pull request.

7. Please run `R CMD BUILD cloudcidrs` and `R CMD CHECK cloudcidrs_VERSION.tar.gz` before submitting the pull request to check for any errors.

Some specific types of changes that you might make are:

1. Bug fixes. Great!

2. Documentation-only changes (e.g., to Rd files, README, vignettes). This is great! All contributions are welcome.

3. New functionality. This is fine, but should be discussed on [the GitHub issues page](https://github.com/cloudyr/cloudcidrs/issues) before submitting a pull request.

3. Changes requiring a new package dependency should also be discussed on [the GitHub issues page](https://github.com/cloudyr/cloudcidrs/issues) before submitting a pull request.

4. Message translations. These are very appreciated! The format is a pain, but if you're doing this I'm assuming you're already familiar with it.

Any questions you have can be opened as GitHub issues or directed to the maintainer.
23 changes: 23 additions & 0 deletions drat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -o errexit -o nounset
addToDrat(){
mkdir drat; cd drat

## Set up Repo parameters
git init
git config user.name "leeper"
git config user.email "thosjleeper@gmail.com"
git config --global push.default simple

## Get drat repo
git remote add upstream "https://$GH_TOKEN@github.com/cloudyr/cloudyr.github.io.git"
git fetch upstream
git checkout master

Rscript -e "drat::insertPackage('../$PKG_TARBALL', repodir = './drat')"
git add --all
git commit -m "add $PKG_TARBALL (build $TRAVIS_BUILD_ID)"
git push

}
addToDrat