221:38f1eefd1eee
Anton Shestakov <av6@dwimlabs.net>, Fri, 12 Aug 2016 19:21:41 +0800
pipelines: of course it's in a virtualenv now

next change 222:3192facc99bc
previous change 220:4c0ce2a34d92

bitbucket-pipelines.yml

Permissions: -rw-r--r--

Other formats: Feeds:
image: ubuntu:trusty
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -y
build-essential
libffi-dev
libssl-dev
python-dev
python-virtualenv
- virtualenv ./venv
- ./venv/bin/pip install ansible
- ./venv/bin/ansible --version
- echo localhost > inventory
- ./venv/bin/ansible-playbook provision/playbook.yml
-i inventory --syntax-check
- ./venv/bin/ansible-playbook provision/playbook.yml
-i inventory --list-tasks
- ./venv/bin/ansible-playbook provision/playbook.yml
-i inventory --connection=local --skip-tags=ufw --verbose
- pgrep -f '/usr/bin/prosody'
- pgrep nginx
- pgrep reTurnServer
- ./venv/bin/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; }