Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 41 lines (35 sloc) 1.158 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# Use this file to easily define all of your cron jobs.
# Learn more: http://github.com/javan/whenever
#
# Install this crontab with: whenever -f schedule.rb -w
#
# 'Git index' jobs require SCM Breeze: https://github.com/ndbroadbent/scm_breeze
job_type :git_index, "git_index --:task"

# -----------------------------------------------------------------------
# Rebuild SCM Breeze index
every 1.minute do
  git_index "rebuild"
end

every 10.minutes do
  # Update dotfiles
  # - Set up new symlinks
  # - Update generated bashrc, git config, etc.
  # - Update this cron task
  command <<-CMD.gsub(/\s{2,}/, ' ').strip
cd $DOTFILES_PATH && (
./setup/symlinks.sh;
./setup/bashrc.sh;
./setup/git_config.sh;
ensure_gem whenever && whenever -f schedule.rb -i)
CMD
end

every 30.minutes do
  # Fetch all remotes for indexed git repos, and fast-forward if possible
  # Send notifications using notify-send
  git_index "update-all-with-notifications"

  # Update Travis CI build statuses for current branch of indexed git repos
  git_index "batch-cmd update_travis_ci_status"
end

every 10.minutes do
  command "refresh_zpint_hosts"
end
Something went wrong with that request. Please try again.