2017-03-18 05:27:54 +00:00
|
|
|
language: python
|
2017-03-04 15:50:08 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
python: 3.2
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
python: 2.7
|
2017-03-18 05:16:04 +00:00
|
|
|
- os: osx
|
2017-03-18 06:19:16 +00:00
|
|
|
osx_image: xcode8.2
|
2017-03-18 05:27:54 +00:00
|
|
|
language: generic
|
2017-03-04 02:52:32 +00:00
|
|
|
|
2017-03-04 03:35:52 +00:00
|
|
|
before_install:
|
2017-03-18 06:19:16 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip install salt; fi
|
2017-03-18 05:56:24 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop; fi
|
2017-03-04 03:35:52 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo mkdir -p /srv/salt/states
|
2017-03-04 03:58:14 +00:00
|
|
|
- sudo cp -r salty/base/* /srv/salt/states
|
2017-03-18 06:28:52 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo mkdir -p /etc/salt; fi
|
2017-03-04 04:17:01 +00:00
|
|
|
- sudo cp -r .travis/minion /etc/salt/minion
|
2017-03-18 05:27:54 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo service salt-minion restart; fi
|
2017-03-04 04:17:01 +00:00
|
|
|
- sudo sh .travis/grains.sh
|
2017-03-04 03:35:52 +00:00
|
|
|
|
2017-03-04 02:52:32 +00:00
|
|
|
script:
|
2017-03-04 04:29:02 +00:00
|
|
|
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet --retcode-passthrough state.apply
|