-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
29 lines (24 loc) · 978 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
28
29
---
language: python
python: "2.7"
env:
- ANSIBLE_VERSION=latest TEST_SUITE=lemp
- ANSIBLE_VERSION=latest TEST_SUITE=docker
- ANSIBLE_VERSION=2.5.0.0 TEST_SUITE=lemp
- ANSIBLE_VERSION=2.4.0.0 TEST_SUITE=lemp
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
- gem install bundler
install:
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
- bundle install
script:
- "printf '[defaults]\nroles_path = ../' > ansible.cfg"
- ansible-galaxy install -r requirements.yml
- "printf 'localhost' > test/inventory"
- ansible-playbook -i test/inventory --syntax-check test/integration/default/default.yml
- ansible-playbook -i test/inventory --connection=local --become -vvvv --skip-tags "users,sshd" test/integration/default/default.yml
- KITCHEN_YAML=".kitchen.travis.yml" bundle exec kitchen test ${TEST_SUITE} -c
notifications:
email: false