forked from marvel-nccr/ansible-role-siesta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 851 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
---
# 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: siesta
matrix:
- name: Ubuntu-18.04
env:
- DOCKER_IMAGE=marvelnccr/ubuntu-docker-base
- DOCKER_IMAGE_VERSION=2.2
- name: Ubuntu-16.04
env:
- DOCKER_IMAGE=marvelnccr/ubuntu-docker-base
- DOCKER_IMAGE_VERSION=1.1
install:
- pip install -r requirements.txt
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/