Last active
January 20, 2017 21:46
-
-
Save mwhahaha/35c7a63de0910cf8ba76df0d6cef2b7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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