Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Live testing notes

Musee Ullah edited this page May 5, 2018 · 1 revision

start ubuntu 14 host on GCE using 2VCPU/7.5GB plan and a 30GB disk (to mimic travis ci)

setup

apt-get install -y python-dev libffi-dev libyaml-dev libssl-dev python-virtualenv git
virtualenv ~/ansible && source ~/ansible/bin/activate && pip install -U pip && pip install ansible
ansible-galaxy install https://github.com/lae/ansible-role-travis-lxc/archive/feature/xyz.tar.gz,devel,lae.travis-lxc --force
cd /root/.ansible/roles/lae.travis-lxc/ && git init && git add . && git commit -m "initial commit"

running deploy

cd tests/
ansible-playbook -i inventory -v deploy.yml

destroy artifacts

lxc-ls -1 | grep -v '\-base' | while read ct; do (lxc-stop -n $ct && lxc-destroy -n $ct) & done; wait; lxc-ls -1 | while read ct; do (lxc-stop -n $ct && lxc-destroy -n $ct) & done; wait
find ~/.ssh -name "*.pub" -not -name 'id_rsa.pub' -delete
Clone this wiki locally