0
0
mirror of https://github.com/saltstack-formulas/rsyncd-formula.git synced 2024-11-27 20:57:49 +01:00

Cleanup .travis.yml and fixed syntax

This commit is contained in:
jpic 2015-05-15 01:28:02 +02:00
parent d5a1dfab02
commit e62b524a2d

View File

@ -16,14 +16,19 @@ before_install:
install: install:
- sudo mkdir -p /srv && sudo ln -sfn $PWD /srv/formula - sudo mkdir -p /srv && sudo ln -sfn $PWD /srv/formula
# See what kind of travis box you're on # See what kind of travis box you're on to help with making your states
# to help with making your states compatible with travis # compatible with travis
- sudo salt-call grains.items --local - sudo salt-call grains.items --local
script: script:
- sudo salt-call state.show_sls $STATE --local --retcode-passthrough --config-dir=test/etc - 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 - 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/default/rsync
- cat /etc/rsyncd.conf - 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