-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
49 lines (41 loc) · 889 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
cache: pip
matrix:
include:
- os: linux
dist: xenial
python: "3.8"
sudo: required
- os: linux
dist: bionic
python: "3.8"
sudo: required
- os: linux
dist: focal
python: "3.8"
sudo: required
# Install ansible
addons:
apt:
packages:
- python3-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# run role
- ansible-playbook tests/test.yml -i tests/inventory --connection=local
# check docker is installed
- docker-compose -f tests/docker-compose.yml up -d
notifications:
webhooks:
urls:
- https://galaxy.ansible.com/api/v1/notifications/
on_cancel: never
on_failure: never
on_error: never