forked from marvel-nccr/ansible-role-fleur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (33 loc) · 908 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
---
# Adapted from
# - https://github.com/drhelius/travis-ansible-demo/blob/master/.travis.yml
# - https://github.com/geerlingguy/ansible-role-docker/blob/master/.travis.yml
language: python
services:
- docker
env:
global:
- ANSIBLE_ROLE: fleur
matrix:
include:
- name: Ubuntu-18.04
env:
- DOCKER_IMAGE: marvelnccr/ubuntu-docker-base
- DOCKER_IMAGE_VERSION: 2.2
- ANSIBLE_USER: ubuntu
- name: Ubuntu-16.04
env:
- docker_image: marvelnccr/ubuntu-docker-base
- version: 1.1
- ansible_user: ubuntu
install:
- pip install molecule docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ANSIBLE_ROLE marvel-nccr.$ANSIBLE_ROLE
- cd marvel-nccr.$ANSIBLE_ROLE
script:
- molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/