Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'r-1.0-5' into production
- Loading branch information
Showing
17 changed files
with
158 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3qkRRQ4XiAiDvxyIj6V1 | ||
d2RuaFicbrjiGBQ4ZzbqbhuX6lzejvy2XdaOV/6lZiNHg0wmGpO2qtZI4rAdglx+ | ||
RAqOzK2UihtFGxQsCU7YI1J7ei0Vz1rsjq1Tz0J5+IcuTl2bWLihE2O+jufH/+Fm | ||
EUjezx/gx0dv3ycpkCWjWgqIy9Jv62dRtKdu0BAw5F26/ELOwMvC210La2Q40Q2x | ||
6uvFHWET4T2EsqZaT4srnEpeVPBiZSKFtliRFZCU8wk76avDja69d6F/Yih5qi32 | ||
ukl8in2O7Nw3d8KtIvYacNyDq3T8XBDCk+rgU42B6BhA5ip1TrHaONaBzzxUBMfO | ||
eQIDAQAB | ||
-----END PUBLIC KEY----- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
.Rhistory | ||
.RData | ||
inst/doc | ||
/inst/web | ||
/docs/ | ||
/vignettes/*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r | ||
|
||
language: R | ||
sudo: false | ||
cache: packages | ||
|
||
warnings_are_errors: true | ||
env: | ||
global: | ||
- _R_CHECK_FORCE_SUGGESTS_=false | ||
- MAKEFLAGS="-j 2" | ||
- R_CODECOV=true | ||
|
||
notifications: | ||
email: | ||
on_success: change | ||
on_failure: change | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libmagick++-dev | ||
|
||
r_github_packages: | ||
- krlmlr/travis@develop | ||
- krlmlr/pkgdown@develop | ||
|
||
r_packages: | ||
- covr | ||
|
||
after_success: | ||
- R -e "travis::deploy(tasks = c('travis::task_install_ssh_keys()'))" | ||
- scripts/deploy-pages.sh | ||
- if [[ "${R_CODECOV}" ]]; then R -e 'covr::codecov()'; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
template: | ||
bootswatch: flatly # https://bootswatch.com/flatly/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
doc_dir=docs | ||
|
||
# adapted from https://github.com/tjmahr/rprime/blob/1e756aea85677ebcbe785e4d3bd65e3b367e0660/deploy-pages.sh | ||
# and https://github.com/RyanHope/gazetools/blob/master/staticdocs-gh_pages.sh | ||
# and https://gist.github.com/domenic/ec8b0fc8ab45f39403dd | ||
# | ||
# For local testing use: | ||
# TRAVIS_OS_NAME=linux TRAVIS_PULL_REQUEST=false TRAVIS_BRANCH=production TRAVIS_REPO_SLUG=rstats-db/DBI TRAVIS_COMMIT=$(git rev-parse HEAD) GITHUB_PAT=<your-PAT> scripts/deploy-pages.sh | ||
|
||
if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "production" ] && [ "$GITHUB_PAT" != "" ]; then | ||
# Query name and e-mail of current author | ||
# https://gist.github.com/l15n/3103708 | ||
user_email=$(git show --format="%ae" | head -n 1) | ||
user_name=$(git show --format="%an" | head -n 1) | ||
|
||
rm -rf $doc_dir | ||
mkdir -p $doc_dir | ||
|
||
# Clone the current docs. | ||
git clone --quiet --branch=gh-pages git@github.com:{TRAVIS_REPO_SLUG}.git $doc_dir > /dev/null | ||
|
||
# Clean current docs and build anew. | ||
echo -e "Building pkgdown...\n" | ||
rm -r $doc_dir/* | ||
R -q -e "pkgdown::build_site()" | ||
|
||
echo -e "Publishing pkgdown...\n" | ||
cd $doc_dir | ||
|
||
# Reuse the name and e-mail of the author of the last commit | ||
git config user.email $user_email | ||
git config user.name $user_name | ||
|
||
# Include .nojekyll as a directive for github | ||
touch .nojekyll | ||
|
||
# Commit and publish | ||
git add -A | ||
|
||
git commit --allow-empty -F /dev/stdin <<EOF | ||
Deploy pages from Travis build ${TRAVIS_BUILD_NUMBER} | ||
Build URL: https://travis-ci.org/${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_ID} | ||
Commit: ${TRAVIS_COMMIT} | ||
EOF | ||
|
||
git push --quiet origin gh-pages | ||
|
||
echo -e "Published pkgdown to gh-pages.\n" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.