rsyncd-formula/.travis.yml

30 lines
885 B
YAML

language: python
python:
- '2.7'
env:
global:
- BS_PIP_ALLOWED=1
- BS_ECHO_DEBUG=1
matrix:
- STATE=rsyncd
- STATE=rsyncd.config
before_install:
- sudo apt-get update
- curl -L http://bootstrap.saltstack.org | sudo -E sh -s -- stable
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
- 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}
- cat /etc/default/rsync
- cat /etc/rsyncd.conf