Skip to content

Instantly share code, notes, and snippets.

@mwhahaha
Last active January 20, 2017 21:46
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 mwhahaha/35c7a63de0910cf8ba76df0d6cef2b7e to your computer and use it in GitHub Desktop.
Save mwhahaha/35c7a63de0910cf8ba76df0d6cef2b7e to your computer and use it in GitHub Desktop.
#!/bin/bash
# run beaker tests on a xenial vm for a specific puppet openstack module.
set -xe
if [ ! -f ~/.ssh/id_rsa ]; then
ssh-keygen -N '' -f ~/.ssh/id_rsa
sudo mkdir -p /root/.ssh
sudo chmod 700 /root/.ssh
sudo cat ~/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
fi
sudo apt-get install -y zlib1g-dev g++ gcc make ruby-dev ruby-bundler
git clone https://github.com/openstack/$1
cd $1
bundle install
BEAKER_destroy=no BEAKER_set=nodepool-xenial BEAKER_debug=yes bundle exec rake acceptance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment