Skip to content

Commit

Permalink
Fix the travis test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
atosatto committed Nov 9, 2019
1 parent 90a8985 commit 2c1917f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
---

language: python
python: "2.7"
python:
- "2.7"
- "3.6"

sudo: required

# Enable the docker service
services:
- docker

env:
# Use the docker driver for tests
global:
- MOLECULE_DRIVER_NAME=docker
# Enable matrix builds
matrix:
- MOLECULE_TARGET_DISTRO=centos-7
- MOLECULE_TARGET_DISTRO=ubuntu-1604

# Replace aufs with the vfs docker storage driver
# to prevent systemd to fail starting docker in docker.
before_install:
Expand All @@ -29,6 +22,13 @@ before_install:
install:
- pip install tox-travis

# Parallel testing of the supported Ansible versions
env:
matrix:
- ANSIBLE=2.6
- ANSIBLE=2.7
- ANSIBLE=2.8

# Tests all the scenarios
script:
- tox
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
[tox]
minversion = 1.8
envlist = py{27}-ansible{26,27,28}
envlist = py{27,36}-ansible{26,27,28}
skipsdist = true

[travis:env]
ANSIBLE=
2.6: ansible26
2.7: ansible27
2.8: ansible28

[testenv]
passenv = *
deps =
Expand Down

0 comments on commit 2c1917f

Please sign in to comment.