This repository has been archived by the owner on Jan 15, 2023. It is now read-only.
forked from elreydetoda/ansible-collection-virtualization
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (65 loc) · 1.7 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
sudo: required
language: python
python:
- "3.8"
services: docker
cache:
- pip
install:
- pip install --upgrade pip
- pip install pipenv
- pipenv --bare install -d --deploy
script:
- ansible-lint roles/*
- yamllint roles/*
# - 'distribution=${distribution} molecule lint'
# from: https://github.com/diodonfrost/ansible-role-vagrant/blob/master/.travis.yml#L162
- 'distribution=${distribution} molecule test'
## modified from: https://github.com/diodonfrost/ansible-role-vagrant/blob/master/.travis.yml
env:
#-----------------------------------------------
#
# CentOS
#
#-----------------------------------------------
- distribution: centos-8
- distribution: centos-7
- distribution: centos-6
#--------------------------------
#
# Fedora
#
#--------------------------------
- distribution: fedora-33
- distribution: fedora-32
- distribution: fedora-31
- distribution: fedora-30
- distribution: fedora-29
- distribution: fedora-28
- distribution: fedora-27
- distribution: fedora-26
#--------------------------------
#
# Ubuntu
#
#--------------------------------
- distribution: ubuntu-20.04
- distribution: ubuntu-18.04
- distribution: ubuntu-16.04
- distribution: ubuntu-14.04
#--------------------------------
#
# Debian
#
#--------------------------------
- distribution: debian-10
- distribution: debian-9
- distribution: debian-8
##
# https://github.com/diodonfrost/ansible-role-vagrant/blob/master/.travis.yml#L155-L156
before_install:
- 'docker pull diodonfrost/${distribution}-ansible:latest'
# from: https://github.com/diodonfrost/ansible-role-vagrant/blob/master/.travis.yml#L164-L165
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/