mirror of
https://github.com/atosatto/ansible-minio.git
synced 2025-01-06 18:28:13 +01:00
test on 3 different ansible versions
This commit is contained in:
parent
30dcb8bf99
commit
3d98143bca
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@ tests/__pycache__/
|
|||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
*.retry
|
*.retry
|
||||||
|
.tox
|
||||||
|
18
.travis.yml
18
.travis.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
|
cache: pip
|
||||||
|
|
||||||
# Use the new container infrastructure
|
# Use the new container infrastructure
|
||||||
sudo: required
|
sudo: required
|
||||||
@ -10,13 +10,19 @@ sudo: required
|
|||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
# Install molecule
|
env:
|
||||||
install:
|
matrix:
|
||||||
- pip install -r test-requirements.txt
|
- ANSIBLE=2.3
|
||||||
|
- ANSIBLE=2.4
|
||||||
|
- ANSIBLE=2.5
|
||||||
|
|
||||||
# Execute the tests using the molecule docker driver
|
# Install tox
|
||||||
|
install:
|
||||||
|
- pip install tox-travis
|
||||||
|
|
||||||
|
# Execute tests
|
||||||
script:
|
script:
|
||||||
- molecule test --all
|
- tox
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
molecule>=2.15.0
|
molecule>=2.15.0
|
||||||
docker-py>=1.10.0
|
docker
|
||||||
PyYAML==3.12
|
|
||||||
ansible-lint>=3.4.0
|
ansible-lint>=3.4.0
|
||||||
|
testinfra>=1.7.0
|
||||||
|
20
tox.ini
Normal file
20
tox.ini
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[tox]
|
||||||
|
minversion = 1.8
|
||||||
|
envlist = py{27}-ansible{23,24,25}
|
||||||
|
skipsdist = true
|
||||||
|
|
||||||
|
[travis:env]
|
||||||
|
ANSIBLE=
|
||||||
|
2.3: ansible23
|
||||||
|
2.4: ansible24
|
||||||
|
2.5: ansible25
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
passenv = *
|
||||||
|
deps =
|
||||||
|
-rtest-requirements.txt
|
||||||
|
ansible23: ansible<2.4
|
||||||
|
ansible24: ansible<2.5
|
||||||
|
ansible25: ansible<2.6
|
||||||
|
commands =
|
||||||
|
{posargs:molecule test --all --destroy always}
|
Loading…
Reference in New Issue
Block a user