2017-03-04 03:06:23 +00:00
|
|
|
sudo: required
|
2017-03-04 02:52:32 +00:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- '2.7'
|
|
|
|
|
2017-03-04 03:35:52 +00:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update
|
|
|
|
- curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Copy these states
|
|
|
|
- sudo mkdir -p /srv/salt/states
|
2017-03-04 03:58:14 +00:00
|
|
|
- sudo cp -r salty/base/* /srv/salt/states
|
2017-03-04 03:35:52 +00:00
|
|
|
- sudo cp .travis/minion /etc/salt/minion
|
|
|
|
- sudo service salt-minion restart
|
|
|
|
|
|
|
|
# Additional debug help
|
2017-03-04 03:50:38 +00:00
|
|
|
#- sudo cat /var/log/salt/*
|
2017-03-04 03:35:52 +00:00
|
|
|
|
|
|
|
# See what kind of travis box you're on
|
|
|
|
# to help with making your states compatible with travis
|
2017-03-04 03:46:05 +00:00
|
|
|
#- sudo salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$HOME\" }"
|
2017-03-04 03:35:52 +00:00
|
|
|
|
2017-03-04 02:52:32 +00:00
|
|
|
script:
|
2017-03-04 03:35:52 +00:00
|
|
|
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet state.apply -retcode-passthrough
|