Skip to content

Commit

Permalink
update repo files
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Jan 16, 2016
1 parent ff4b0ed commit 958cea8
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Renviron
.Rproj.user
.Rhistory
.RData
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
language: r
sudo: required
r_packages:
- knitr
r_github_packages:
- cloudyr/aws.signature
- jimhester/covr
- eddelbuettel/drat
after_failure:
email:
recipients:
- thosjleeper@gmail.com
on_success: change
on_failure: change
after_success:
- Rscript -e 'library("covr");codecov()'
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash
drat.sh
env:
global:
secure: QN29O3cSh3wWKu0J9qAlRJurI8nGsaJa9omf3opgdHcBAknwwJEGLjY5hVXWXDzbBUkF7y9kTLlZzkYhND8FS9O2wkW4zUV/Q2S0pCUCpoJ07F10wEGvyYa8ft6Aj8RQPMBCx7lhbxA+WvBrPalkA9yoi60NwIlf6YOl8JejCsY=
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Package: aws.sqs
Type: Package
Title: AWS SQS Client Package
Version: 0.1
Date: 2015-05-25
Version: 0.1.1
Date: 2016-01-16
Author: Thomas J. Leeper
Maintainer: Thomas J. Leeper <thosjleeper@gmail.com>
Description: A simple client package for the Amazon Web Services (AWS) Simple Queue Service (SQS) API.
License: GPL (>= 2)
Imports: httr, XML, jsonlite, aws.signature
Suggests: testthat
URL: https://github.com/cloudyr/aws.sqs
BugReports: https://github.com/cloudyr/aws.sqs/issues
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
21 changes: 21 additions & 0 deletions knitreadme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -o errexit -o nounset
knitreadme(){
## 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/$TRAVIS_REPO_SLUG.git"
git fetch upstream
git checkout master

Rscript -e 'library("knitr");knitr::knit("README.Rmd")'

git add README.md
git commit -m "knit README [skip ci]"
git push
}
knitreadme

0 comments on commit 958cea8

Please sign in to comment.