Fixing OS specific commands for travis
This commit is contained in:
parent
160ee5d7ce
commit
27305faecd
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
#language: python
|
||||
language: python
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
@ -10,16 +10,18 @@ matrix:
|
|||
python: 2.7
|
||||
- os: osx
|
||||
osx_image: xcode8.2
|
||||
language: generic
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
|
||||
- curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop
|
||||
|
||||
install:
|
||||
- sudo mkdir -p /srv/salt/states
|
||||
- sudo cp -r salty/base/* /srv/salt/states
|
||||
- sudo cp -r .travis/minion /etc/salt/minion
|
||||
- sudo service salt-minion restart
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo service salt-minion restart; fi
|
||||
- sudo sh .travis/grains.sh
|
||||
|
||||
script:
|
||||
|
|
Loading…
Reference in a new issue