Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
Created February 24, 2013 11:27
Show Gist options
  • Save jedi4ever/5023486 to your computer and use it in GitHub Desktop.
Save jedi4ever/5023486 to your computer and use it in GitHub Desktop.
Template veewee ci build job
#!/bin/bash -e
export TERM=xterm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# Use the correct ruby
rvm install ruby-1.9.2-p320
rvm use 1.9.2@veewee-test-1 --create
# Do any setup
bundle install
export VEEWEE_SSH_TIMEOUT=600
export VEEWEE_CPU_COUNT=4
export VEEWEE_MEMORY_SIZE=8192
export VEEWEE_HTTP_PROXY=http://85.10.211.181:3128/
export VEEWEE_http_proxy=http://85.10.211.181:3128/
! test -d iso && ln -s /var/iso iso
bundle exec veewee vbox define auto $JOB_NAME --force
bundle exec veewee vbox build auto --auto --force --nogui
bundle exec veewee vbox validate auto
bundle exec veewee vbox export auto --force
mv auto.box /var/box/$JOB_NAME.box
bundle exec veewee vbox destroy auto
bundle exec veewee vbox undefine auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment