Trying a more involved Travis config
This commit is contained in:
parent
8dee80c0df
commit
405e7703c4
1 changed files with 19 additions and 1 deletions
20
.travis.yml
20
.travis.yml
|
@ -3,5 +3,23 @@ language: python
|
|||
python:
|
||||
- '2.7'
|
||||
|
||||
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
|
||||
- sudo cp -r . /srv/salt/states
|
||||
- sudo cp .travis/minion /etc/salt/minion
|
||||
- sudo service salt-minion restart
|
||||
|
||||
# Additional debug help
|
||||
- sudo cat /var/log/salt/*
|
||||
|
||||
# See what kind of travis box you're on
|
||||
# to help with making your states compatible with travis
|
||||
- sudo salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$HOME\" }"
|
||||
|
||||
script:
|
||||
- ./bootstrap.sh
|
||||
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet state.apply -retcode-passthrough
|
||||
|
|
Loading…
Reference in a new issue