Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Created October 6, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7hunderbird/72e2ff5aa2d44b702ffa to your computer and use it in GitHub Desktop.
Save 7hunderbird/72e2ff5aa2d44b702ffa to your computer and use it in GitHub Desktop.
A quick way to rebuild travis repositories from scratch.
reset_folders() {
# take the current directory's folder's and remove them
find . -d 1 -type d -name "*" -print0 | xargs -0 rm -rf
}
clone_repos() {
# http://www.thegeekstuff.com/2010/06/bash-array-tutorial/
# 15. Load Content of a File into an Array
repos=(`cat "repos.cfg"`)
for r in "${repos[@]}"; do
echo -e "CLONE: $r";
git clone --depth=50 "https://github.com/travis-ci/$r.git";
done
}
reset_folders
clone_repos
apt-package-whitelist
apt-whitelist-checker
dpl
docs-travis-ci-com
gimme
hubot-deploy
system_info
travis-api
travis-build
travis-cookbooks
travis-config
travis-core
travis-encrypt
travis-foundation
travis-github-sync
travis-hub
travis-images-specs
travis-lock
travis-migrations
travis-nightly-builder
travis-rubies
travis-scheduler
travis-support
travis-tasks
travis-web
travis-yaml
travis.rb
worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment