Skip to content

Commit

Permalink
reenable drat
Browse files Browse the repository at this point in the history
  • Loading branch information
hongooi73 committed May 27, 2019
1 parent 99301a5 commit 7266697
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
language: r
sudo: false
cache: packages
r_packages:
- drat
after_success:
- 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://$ghPat@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

0 comments on commit 7266697

Please sign in to comment.