From e62b524a2db363e4b6269109f607464bfbe125e9 Mon Sep 17 00:00:00 2001 From: jpic Date: Fri, 15 May 2015 01:28:02 +0200 Subject: [PATCH] Cleanup .travis.yml and fixed syntax --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 285b493..d5a2810 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,14 +16,19 @@ before_install: install: - sudo mkdir -p /srv && sudo ln -sfn $PWD /srv/formula - # See what kind of travis box you're on - # to help with making your states compatible with travis + # See what kind of travis box you're on to help with making your states + # compatible with travis - sudo salt-call grains.items --local script: - sudo salt-call state.show_sls $STATE --local --retcode-passthrough --config-dir=test/etc - sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc - # Idempotence check - - sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc | grep '^Not Run:' && {echo 'Idempotence check failed'; exit 1} + + # For debugging purpose - cat /etc/default/rsync - cat /etc/rsyncd.conf + + # Idempotence check + - sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc > /tmp/second + - grep '^Not Run:' /tmp/second && { echo 'Idempotence check failed'; exit 1; } || { echo 'Imdempotence passes'; exit 0; } + - cat /tmp/second