-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 loc) · 1.11 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dist: trusty
sudo: required
language: python
python:
- '2.7'
branches:
only:
- master
env:
global:
- BS_PIP_ALLOWED=1
- BS_ECHO_DEBUG=1
- SALT_ARGS="-l debug --local --retcode-passthrough --pillar-root=$PWD/pillar --file-root=$PWD/state"
before_install:
- sudo apt-get update
- curl -L https://bootstrap.saltstack.com | sudo -E sh -s -- stable
install:
# See what kind of travis box you're on to help with making your states
# compatible with travis
- sudo salt-call --local grains.setval testing True
- sudo salt-call --local grains.setval testingtravis True
- sudo salt-call --local grains.items
script:
# For debugging purpose
- sudo salt-call state.show_highstate $SALT_ARGS
# Run highstate
- sudo salt-call state.highstate $SALT_ARGS --state-output=mixed
# Idempotence check
- sudo salt-call state.highstate $SALT_ARGS --state-output=changes > /tmp/second
- cat /tmp/second
- bash -c '! grep -q "^Not Run:" /tmp/second'
notifications:
email:
recipients:
on_success: never # default: change
on_failure: always # default: always