Skip to content

Commit

Permalink
Test on less ansible versions, update meta and README accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 26, 2018
1 parent 510e02d commit c648c8a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 75 deletions.
76 changes: 19 additions & 57 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,113 +4,75 @@ language: python
services: docker

env:
- version=">=2.4,<2.5" distro="alpine-latest"
- version=">=2.5,<2.6" distro="alpine-latest"
- version=">=2.6,<2.7" distro="alpine-latest"
- version=">=2.7,<2.8" distro="alpine-latest"
- version="" distro="alpine-latest"
- version="devel" distro="alpine-latest"
- version=">=2.4,<2.5" distro="alpine-edge"
- version=">=2.5,<2.6" distro="alpine-edge"
- version=">=2.6,<2.7" distro="alpine-edge"
- version=">=2.7,<2.8" distro="alpine-edge"
- version="" distro="alpine-edge"
- version="devel" distro="alpine-edge"
- version=">=2.4,<2.5" distro="archlinux"
- version=">=2.5,<2.6" distro="archlinux"
- version=">=2.6,<2.7" distro="archlinux"
- version=">=2.7,<2.8" distro="archlinux"
- version="" distro="archlinux"
- version="devel" distro="archlinux"
- version=">=2.4,<2.5" distro="centos-6"
- version=">=2.5,<2.6" distro="centos-6"
- version=">=2.6,<2.7" distro="centos-6"
- version=">=2.7,<2.8" distro="centos-6"
- version="" distro="centos-6"
- version="devel" distro="centos-6"
- version=">=2.4,<2.5" distro="centos-latest"
- version=">=2.5,<2.6" distro="centos-latest"
- version=">=2.6,<2.7" distro="centos-latest"
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.4,<2.5" distro="debian-latest"
- version=">=2.5,<2.6" distro="debian-latest"
- version=">=2.6,<2.7" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.4,<2.5" distro="debian-stable"
- version=">=2.5,<2.6" distro="debian-stable"
- version=">=2.6,<2.7" distro="debian-stable"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
- version=">=2.4,<2.5" distro="debian-unstable"
- version=">=2.5,<2.6" distro="debian-unstable"
- version=">=2.6,<2.7" distro="debian-unstable"
- version=">=2.7,<2.8" distro="debian-unstable"
- version="" distro="debian-unstable"
- version="devel" distro="debian-unstable"
- version=">=2.4,<2.5" distro="fedora-latest"
- version=">=2.5,<2.6" distro="fedora-latest"
- version=">=2.6,<2.7" distro="fedora-latest"
- version=">=2.7,<2.8" distro="fedora-latest"
- version="" distro="fedora-latest"
- version="devel" distro="fedora-latest"
- version=">=2.4,<2.5" distro="fedora-rawhide"
- version=">=2.5,<2.6" distro="fedora-rawhide"
- version=">=2.6,<2.7" distro="fedora-rawhide"
- version=">=2.7,<2.8" distro="fedora-rawhide"
- version="" distro="fedora-rawhide"
- version="devel" distro="fedora-rawhide"
- version=">=2.4,<2.5" distro="opensuse-leap"
- version=">=2.5,<2.6" distro="opensuse-leap"
- version=">=2.6,<2.7" distro="opensuse-leap"
- version=">=2.7,<2.8" distro="opensuse-leap"
- version="" distro="opensuse-leap"
- version="devel" distro="opensuse-leap"
- version=">=2.4,<2.5" distro="opensuse-tumbleweed"
- version=">=2.5,<2.6" distro="opensuse-tumbleweed"
- version=">=2.6,<2.7" distro="opensuse-tumbleweed"
- version=">=2.7,<2.8" distro="opensuse-tumbleweed"
- version="" distro="opensuse-tumbleweed"
- version="devel" distro="opensuse-tumbleweed"
- version=">=2.4,<2.5" distro="ubuntu-artful"
- version=">=2.5,<2.6" distro="ubuntu-artful"
- version=">=2.6,<2.7" distro="ubuntu-artful"
- version=">=2.7,<2.8" distro="ubuntu-artful"
- version="" distro="ubuntu-artful"
- version="devel" distro="ubuntu-artful"
- version=">=2.4,<2.5" distro="ubuntu-latest"
- version=">=2.5,<2.6" distro="ubuntu-latest"
- version=">=2.6,<2.7" distro="ubuntu-latest"
- version=">=2.7,<2.8" distro="ubuntu-latest"
- version="" distro="ubuntu-latest"
- version="devel" distro="ubuntu-latest"
- version=">=2.4,<2.5" distro="ubuntu-devel"
- version=">=2.5,<2.6" distro="ubuntu-devel"
- version=">=2.6,<2.7" distro="ubuntu-devel"
- version=">=2.7,<2.8" distro="ubuntu-devel"
- version="" distro="ubuntu-devel"
- version="devel" distro="ubuntu-devel"

matrix:
allow_failures:
- env: version=">=2.4,<2.5" distro="alpine-edge"
- env: version=">=2.5,<2.6" distro="alpine-edge"
- env: version=">=2.6,<2.7" distro="alpine-edge"
- env: version=">=2.7,<2.8" distro="alpine-edge"
- env: version="" distro="alpine-edge"
- env: version="devel" distro="alpine-edge"
- env: version="devel" distro="alpine-latest"
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.4,<2.5" distro="debian-unstable"
- env: version=">=2.5,<2.6" distro="debian-unstable"
- env: version=">=2.6,<2.7" distro="debian-unstable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"
- env: version="devel" distro="debian-unstable"
- env: version="devel" distro="fedora-latest"
- env: version=">=2.4,<2.5" distro="fedora-rawhide"
- env: version=">=2.5,<2.6" distro="fedora-rawhide"
- env: version=">=2.6,<2.7" distro="fedora-rawhide"
- env: version=">=2.7,<2.8" distro="fedora-rawhide"
- env: version="" distro="fedora-rawhide"
- env: version="devel" distro="fedora-rawhide"
- env: version="devel" distro="opensuse-leap"
- env: version="devel" distro="opensuse-tumbleweed"
- env: version="devel" distro="ubuntu-artful"
- env: version=">=2.4,<2.5" distro="ubuntu-devel"
- env: version=">=2.5,<2.6" distro="ubuntu-devel"
- env: version=">=2.6,<2.7" distro="ubuntu-devel"
- env: version=">=2.7,<2.8" distro="ubuntu-devel"
- env: version="" distro="ubuntu-devel"
- env: version="devel" distro="ubuntu-devel"
- env: version="devel" distro="ubuntu-latest"

Expand Down
42 changes: 25 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,23 @@ Compatibility

This role has been tested against the following distributions and Ansible version:

|distribution|ansible 2.4|ansible 2.5|ansible 2.6|ansible 2.7|ansible devel|
|------------|-----------|-----------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes|yes|yes*|
|alpine-latest|yes|yes|yes|yes|yes*|
|archlinux|yes|yes|yes|yes|yes*|
|centos-6|yes|yes|yes|yes|yes*|
|centos-latest|yes|yes|yes|yes|yes*|
|debian-latest|yes|yes|yes|yes|yes*|
|debian-stable|yes|yes|yes|yes|yes*|
|debian-unstable*|yes|yes|yes|yes|yes*|
|fedora-latest|yes|yes|yes|yes|yes*|
|fedora-rawhide*|yes|yes|yes|yes|yes*|
|opensuse-leap|yes|yes|yes|yes|yes*|
|opensuse-tumbleweed|yes|yes|yes|yes|yes*|
|ubuntu-artful|yes|yes|yes|yes|yes*|
|ubuntu-devel*|yes|yes|yes|yes|yes*|
|ubuntu-latest|yes|yes|yes|yes|yes*|
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
|fedora-rawhide*|yes|yes|yes*|
|opensuse-leap|yes|yes|yes*|
|opensuse-tumbleweed|yes|yes|yes*|
|ubuntu-artful|yes|yes|yes*|
|ubuntu-devel*|yes|yes|yes*|
|ubuntu-latest|yes|yes|yes*|

A single star means the build may fail, it's marked as an experimental build.

Expand All @@ -96,8 +96,16 @@ To test this role locally please use [Molecule](https://github.com/metacloud/mol
pip install molecule
molecule test
```

To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.

There are many specific scenarios available, please have a look in the `molecule/` directory.

Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```
ansible-lint -r /path/to/galaxy-lint-rules/rules .
ansible-lint -r /path/to/ansible-lint-rules/rules .
```

License
-------
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ galaxy_info:
description: The purpose of this role is to install and configure dovecot on your system.
license: Apache-2.0
company: none
min_ansible_version: 2.4
min_ansible_version: 2.6

platforms:
- name: Alpine
Expand Down

0 comments on commit c648c8a

Please sign in to comment.