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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ figs/
^cran-comments.md$
^docs
^logo
^drat\.sh$
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ cache: packages

warnings_are_errors: false

r_packages:
- drat
after_success:
- Rscript -e 'covr::codecov()'
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash drat.sh
21 changes: 21 additions & 0 deletions drat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -o errexit -o nounset
addToDrat(){
mkdir drat; cd drat

## Set up Repo parameters
git init
git config --global push.default simple

## Get drat repo
git remote add upstream "https://$GITHUB_PAT@github.com/reconhub/recondrat.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