pinch-dotfiles/.travis.yml
2017-03-18 23:16:29 -04:00

40 lines
1.3 KiB
YAML

language: python
notifications:
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MEFybWFnZWRkb24lM0FtYXRyaXgub3JnLyUyMVZ1SndzTmdlUkVyZUhiQ2VEWCUzQW1hdHJpeC5vcmc"
on_success: change # always|never|change
on_failure: always
on_start: never
matrix:
include:
- os: linux
sudo: required
python: 3.2
- os: linux
sudo: required
python: 2.7
- os: osx
osx_image: xcode8.2
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install saltstack; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export HOME=/home/travis; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop; fi
install:
- sudo mkdir -p /srv/salt/states
- sudo cp -r salty/base/* /srv/salt/states
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo mkdir -p /etc/salt; fi
- sudo cp -r .travis/minion /etc/salt/minion
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo service salt-minion restart; fi
- sudo sh .travis/grains.sh
script:
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet --retcode-passthrough state.apply
- which pip
- which pip3