Skip to content

Commit

Permalink
Create drat.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Mar 15, 2016
1 parent 1a0b679 commit 70b2705
Showing 1 changed file with 23 additions and 0 deletions.
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 "[email protected]"
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

0 comments on commit 70b2705

Please sign in to comment.