0
0
mirror of https://github.com/saltstack-formulas/rsyncd-formula.git synced 2024-11-27 23:07:56 +01:00
rsyncd-formula/.travis.yml

35 lines
904 B
YAML
Raw Normal View History

2015-05-15 00:05:21 +02:00
language: python
python:
- '2.7'
2015-05-15 00:42:55 +02:00
env:
global:
- BS_PIP_ALLOWED=1
- BS_ECHO_DEBUG=1
2015-05-15 17:46:58 +02:00
- SALT_ARGS="-l debug --local --retcode-passthrough --pillar-root=test/pillar --file-root=$PWD"
2015-05-15 00:51:56 +02:00
matrix:
- STATE=rsyncd
- STATE=rsyncd.config
2015-05-15 00:42:55 +02:00
2015-05-15 00:05:21 +02:00
before_install:
- sudo apt-get update
2015-05-15 00:42:55 +02:00
- curl -L http://bootstrap.saltstack.org | sudo -E sh -s -- stable
2015-05-15 00:05:21 +02:00
install:
2015-05-15 01:28:02 +02:00
# See what kind of travis box you're on to help with making your states
# compatible with travis
2015-05-15 00:05:21 +02:00
- sudo salt-call grains.items --local
script:
2015-05-15 02:16:14 +02:00
- sudo salt-call state.show_sls $STATE $SALT_ARGS
- sudo salt-call state.sls $STATE $SALT_ARGS
2015-05-15 01:28:02 +02:00
# For debugging purpose
- cat /etc/default/rsync
- test -f /etc/rsyncd.conf && cat /etc/rsyncd.conf || echo "No rsyncd.conf"
2015-05-15 01:28:02 +02:00
# Idempotence check
2015-05-15 02:16:14 +02:00
- sudo salt-call state.sls $STATE $SALT_ARGS > /tmp/second
2015-05-15 01:28:02 +02:00
- cat /tmp/second
- bash -c '! grep -q "^Not Run:" /tmp/second'