-
Notifications
You must be signed in to change notification settings - Fork 62
/
.travis.yml
23 lines (23 loc) · 943 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
---
language: python
python: "2.7"
virtualenv:
system_site_packages: true
env:
- ROLE_OPTIONS="nodejs_install_method=source"
- ROLE_OPTIONS="nodejs_install_method=package"
- ROLE_OPTIONS="nodejs_install_method=binary"
install:
- sudo apt-get update -qq
- sudo apt-get install python-apt python-pycurl
- pip install -U ansible urllib3 pyOpenSSL pyasn1 ndg-httpsclient
- ansible-galaxy install -r tests/requirements.yml
script:
- echo localhost > inventory
# Syntax check
- ansible-playbook -i inventory test.yml --syntax-check
# Play test
- travis_wait 30 ansible-playbook -i inventory test.yml --connection=local --become -e "$ROLE_OPTIONS" -e "ansible_python_interpreter=`which python`"
# Idempotence test
- ansible-playbook -i inventory test.yml --connection=local --become -e "$ROLE_OPTIONS" -e "ansible_python_interpreter=`which python`" | tee idempotence_out
- ./tests/idempotence_check.sh idempotence_out