forked from aruhier/ansible-role-unbound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (37 loc) · 932 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
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
---
language: python
python: "2.7"
# Spin off separate builds for each of the following versions of Ansible
env:
- ANSIBLE_VERSION=2.2
- ANSIBLE_VERSION=2.3
- ANSIBLE_VERSION=2.4
- ANSIBLE_VERSION=2.5
- ANSIBLE_VERSION=2.6
- ANSIBLE_VERSION=2.7
# Require the standard build environment
sudo: required
# Require Docker
services:
- docker
# Cache Ansible and Molecule to speed things up
cache:
- pip
install:
# Install Ansible
- pip install "ansible~=$ANSIBLE_VERSION"
# Install Python API for Docker (required by Molecule Docker driver)
- pip install docker
# Install Molecule
- pip install molecule
# Check Ansible version
- ansible --version
# Check Molecule version
- molecule --version
# Build the Docker images
- molecule --debug create
- molecule --debug destroy
script:
- molecule --debug test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/