Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup Travis continuous integration (CI) to update daily #2

Closed
bbest opened this issue May 26, 2017 · 3 comments
Closed

setup Travis continuous integration (CI) to update daily #2

bbest opened this issue May 26, 2017 · 3 comments

Comments

@bbest
Copy link
Contributor

bbest commented May 26, 2017

While at rOpenSci runconf17, initially describing this at ropensci-archive/cityquant#1

@bbest
Copy link
Contributor Author

bbest commented May 26, 2017

Resources

Steps

In these steps below replace:

  • bbest with your Github username
  • SustainSB with your Github username or organization containing the repository
  • sustainsb.github.io with your Github repository
  1. Add R dependencies into DESCRIPTION file.

  2. Turn on repository in your Travis profile, eg travis-ci.org/profile/bbest.

  3. Add .travis.yml file to root of your repository, eg .travis.yml which executes _render.sh &
    _push.sh.

  4. Trigger your first build with a git push and check Travis at travis-ci.org/SustainSB/sustainsb.github.io.

  5. Add badge to top of README.md (note Travis URLs are case sensitive):

[![](https://api.travis-ci.org/SustainSB/sustainsb.github.io.svg?branch=master)](https://travis-ci.org/SustainSB/sustainsb.github.io)
  1. Create Personal Access Token at github.com/settings/tokens and paste value into file outside repo, eg ~/.gh-token_sustainsb-push.

  2. Add encrypted Github token to .travis.yml and git push to enable the `_push:

travis init
echo GH_TOKEN=`cat ~/.gh-token_sustainsb-push` | travis encrypt --add

@bbest
Copy link
Contributor Author

bbest commented Jun 11, 2017

@bbest
Copy link
Contributor Author

bbest commented Jun 12, 2017

Now git commit logs $TRAVIS_EVENT_TYPE, so far either cron or push:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant