Fixing OS specific commands for travis

This commit is contained in:
Elijah Lazkani 2017-03-18 01:27:54 -04:00
parent 160ee5d7ce
commit 27305faecd

View file

@ -1,4 +1,4 @@
#language: python language: python
matrix: matrix:
include: include:
@ -10,16 +10,18 @@ matrix:
python: 2.7 python: 2.7
- os: osx - os: osx
osx_image: xcode8.2 osx_image: xcode8.2
language: generic
before_install: 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 - curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop
install: install:
- sudo mkdir -p /srv/salt/states - sudo mkdir -p /srv/salt/states
- sudo cp -r salty/base/* /srv/salt/states - sudo cp -r salty/base/* /srv/salt/states
- sudo cp -r .travis/minion /etc/salt/minion - 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 - sudo sh .travis/grains.sh
script: script: