--- a/bitbucket-pipelines.yml Sun Jul 30 22:50:06 2017 +0800
+++ b/bitbucket-pipelines.yml Sun Jul 30 22:50:39 2017 +0800
- pip install -r REQUIREMENTS
- - echo localhost > inventory
- - ansible-playbook provision/playbook.yml
- -i inventory --syntax-check
- - ansible-playbook provision/playbook.yml
- -i inventory --list-tasks
- - apt-get update && apt-get install -y sudo supervisor
- - service supervisor restart
- - ansible-playbook provision/playbook.yml
- -i inventory --connection=local --skip-tags=ufw --verbose
- - pgrep -f 'fruitbar/venv/bin/gunicorn'
- - ansible-playbook provision/playbook.yml
- -i inventory --connection=local --skip-tags=ufw
- | grep -q 'changed=0.*failed=0'
- && { echo 'Idempotence test passed'; exit 0; }
- || { echo 'Idempotence test failed'; exit 1; }