mirror of
https://github.com/saltstack-formulas/rsyncd-formula.git
synced 2024-11-27 23:07:56 +01:00
35 lines
904 B
YAML
35 lines
904 B
YAML
language: python
|
|
python:
|
|
- '2.7'
|
|
|
|
env:
|
|
global:
|
|
- BS_PIP_ALLOWED=1
|
|
- BS_ECHO_DEBUG=1
|
|
- SALT_ARGS="-l debug --local --retcode-passthrough --pillar-root=test/pillar --file-root=$PWD"
|
|
matrix:
|
|
- STATE=rsyncd
|
|
- STATE=rsyncd.config
|
|
|
|
before_install:
|
|
- sudo apt-get update
|
|
- curl -L http://bootstrap.saltstack.org | sudo -E sh -s -- stable
|
|
|
|
install:
|
|
# 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 $SALT_ARGS
|
|
- sudo salt-call state.sls $STATE $SALT_ARGS
|
|
|
|
# For debugging purpose
|
|
- cat /etc/default/rsync
|
|
- test -f /etc/rsyncd.conf && cat /etc/rsyncd.conf || echo "No rsyncd.conf"
|
|
|
|
# Idempotence check
|
|
- sudo salt-call state.sls $STATE $SALT_ARGS > /tmp/second
|
|
- cat /tmp/second
|
|
- bash -c '! grep -q "^Not Run:" /tmp/second'
|