-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
62 lines (57 loc) · 2.86 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
---
dist: bionic
os: linux
language: python
services:
- docker
before_install:
- sudo apt-get -qq update
env:
global:
- COLLECTION_NAMESPACE: ericsysmin
- COLLECTION_NAME: system
jobs:
# Molecule tests for chrony
- ROLE=chrony MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=chrony MOLECULE_DISTRO=centos-8 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=chrony MOLECULE_DISTRO=fedora-32 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=chrony MOLECULE_DISTRO=fedora-31 MOLECULE_COMMAND=/usr/lib/systemd/systemd
- ROLE=chrony MOLECULE_DISTRO=fedora-30 MOLECULE_COMMAND=/usr/lib/systemd/systemd
- ROLE=chrony MOLECULE_DISTRO=ubuntu-16.04 MOLECULE_COMMAND=/sbin/init
- ROLE=chrony MOLECULE_DISTRO=ubuntu-18.04 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=chrony MOLECULE_DISTRO=ubuntu-20.04 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=chrony MOLECULE_DISTRO=debian-9 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=chrony MOLECULE_DISTRO=debian-10 MOLECULE_COMMAND=/lib/systemd/systemd
# Molecule tests for epel
- ROLE=epel MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=epel MOLECULE_DISTRO=centos-8 MOLECULE_COMMAND=/usr/sbin/init
# Molecule tests for logrotate
- ROLE=logrotate MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=logrotate MOLECULE_DISTRO=centos-8 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=logrotate MOLECULE_DISTRO=ubuntu-16.04 MOLECULE_COMMAND=/sbin/init
- ROLE=logrotate MOLECULE_DISTRO=ubuntu-18.04 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=logrotate MOLECULE_DISTRO=ubuntu-20.04 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=logrotate MOLECULE_DISTRO=debian-9 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=logrotate MOLECULE_DISTRO=debian-10 MOLECULE_COMMAND=/lib/systemd/systemd
# Molecule tests for ntp
- ROLE=ntp MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=ntp MOLECULE_DISTRO=ubuntu-16.04 MOLECULE_COMMAND=/sbin/init
- ROLE=ntp MOLECULE_DISTRO=ubuntu-18.04 MOLECULE_COMMAND=/lib/systemd/systemd
- ROLE=ntp MOLECULE_DISTRO=debian-9 MOLECULE_COMMAND=/lib/systemd/systemd
# Molecule tests for remi_repo
- ROLE=remi_repo MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=remi_repo MOLECULE_DISTRO=centos-8 MOLECULE_COMMAND=/usr/sbin/init
# Molecule tests for selinux
- ROLE=selinux MOLECULE_DISTRO=centos-7 MOLECULE_COMMAND=/usr/sbin/init
- ROLE=selinux MOLECULE_DISTRO=centos-8 MOLECULE_COMMAND=/usr/sbin/init
jobs:
fast_finish: true
install:
- pip install molecule yamllint ansible-lint docker
before_script:
- cd ../
- mkdir -p ansible_collections/$COLLECTION_NAMESPACE
- mv ansible-collection-$COLLECTION_NAME ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
- cd ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
script:
- molecule test --scenario-name $ROLE