-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.17 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
# Initialize the Language
language: python
# Declare Docker Service to be used in the build
services: docker
# Environments variables for test
env:
# Global
global:
- ROLE_NAME: confluence
- AUTHOR: jetune
matrix:
- MOLECULE_DISTRO: kubecloudsas/docker-ansible-test:v1.1.0-centos7-py3
MOLECULE_NAME: centos7
- MOLECULE_DISTRO: kubecloudsas/docker-ansible-test:v1.1.0-xenial-py3
MOLECULE_NAME: xenial
- MOLECULE_DISTRO: kubecloudsas/docker-ansible-test:v1.1.0-bionic-py3
MOLECULE_NAME: bionic
# Before install actions
before_install:
- sudo docker pull ${MOLECULE_DISTRO}
# Installation actions
install:
# Install Test tools
- pip3 install ansible molecule docker molecule-docker flake8
# Uninstall testinfra 1.19.0
- pip3 uninstall -y testinfra==1.19.0
# Install testinfra 3.0.5
- pip3 install testinfra==3.0.5
# Test scripts
script:
# Check ansible version
- ansible --version
# Check ñolecule version
- molecule --version
# Run Tests
- molecule test --all
# Norifications
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/