Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to build deppbot

Juanito Fatas
September 24, 2016

How to build deppbot

@ RubyConf China 2016

Juanito Fatas

September 24, 2016
Tweet

More Decks by Juanito Fatas

Other Decks in Technology

Transcript

  1. Winston Teo Practice of updating all dependencies to newer versions

    several times a month. Founder, Jolly Good Code Continuous Updates
  2. deppbot adds herself to your repo Run Automated Updates every

    1.hour do if need_to_update? Run Automated Updates end end
  3. 1.6.6.4…1.6.7  Parse diff and link_to repository compare view for

    code review Gem authors, please push your tags when release a gem
  4. bundle update add, commit, push open a new PR on

    GitHub.com Issue the Pull Request Manually
  5. today = Time.current.strftime("%F") new_branch = "bundle-update-#{today}" `git checkout master` `git

    pull` `git checkout -b #{new_branch}` `bundle update` `git add Gemfile.lock` `git commit -m ‘Bundle Updates’ `git push origin #{new_branch}` `git pull-request -m "Updates #{today}" Script
  6. today = Time.current.strftime("%F") new_branch = "bundle-update-#{today}" `git checkout master` `git

    pull` `git checkout -b #{new_branch}` `bundle update` `git add Gemfile.lock` `git commit -m ‘Bundle Updates’ `git push origin #{new_branch}` `git pull-request -m "Updates #{today}" 15 m ins
  7. bundle update 1. clone & setup 2. start new build

    3. bundle update 4. store diff