-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
27 lines (23 loc) · 916 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# based on
# https://github.com/ipython/salt-states-nbviewer/blob/master/.travis.yml
language: python
python:
- '2.7'
before_install:
- sudo apt-get update
- curl -o install_salt.sh -L http://bootstrap.saltstack.com
- sudo sh install_salt.sh git v2015.2.0rc2
- sudo cp .travis/minion /etc/salt/minion
- sudo cp -r requirements /home/travis/
install:
- sudo cp -r salt/roots/salt/ /srv/salt/
- sudo cp -r salt/roots/pillar/ /srv/pillar/
- sudo salt-call --local grains.items
- sudo pip install pytest
script:
- sudo salt-call state.show_highstate --local --retcode-passthrough
- sudo salt-call state.sls locale --hard-crash --local -l debug
- sudo salt-call state.sls python --hard-crash --local -l debug
- sudo salt-call state.sls virtualenv.base --hard-crash --local -l debug
- sudo salt-call state.sls virtualenv.scilibs --hard-crash --local -l debug
- sudo py.test -v tests.py