Download:
child 132:926bee60cea5
parent 130:aa9bf9c90aac
131:be85d5073342
Anton Shestakov <av6@dwimlabs.net>, Thu, 11 Aug 2016 18:21:31 +0800
pipelines: make the second run quiet and check that nothing's changed Using exit within current shell (i.e. `{}` instead of `()`) is an experiment.

1 файлов изменено, 4 вставок(+), 1 удалений(-) [+]
bitbucket-pipelines.yml file | annotate | diff | comparison | revisions
--- a/bitbucket-pipelines.yml Thu Aug 11 18:19:01 2016 +0800
+++ b/bitbucket-pipelines.yml Thu Aug 11 18:21:31 2016 +0800
@@ -21,4 +21,7 @@
-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 -vvvv
+ -i inventory --connection=local --skip-tags=ufw
+ | grep -q 'changed=0.*failed=0'
+ && { echo 'Idempotence test: pass'; exit 0; }
+ || { echo 'Idempotence test: fail'; exit 1; }