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
|
2015-05-15 00:32:40 +02:00
|
|
|
- cat /etc/default/rsync
|
2015-05-15 01:59:18 +02:00
|
|
|
- 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
|
2015-05-15 01:57:03 +02:00
|
|
|
- bash -c '! grep -q "^Not Run:" /tmp/second'
|