-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
93 lines (74 loc) · 2.99 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
language: python
services: docker
env:
global:
- ROLE_NAMESPACE: inverse-inc
- ROLE_NAME: gitlab-buildpkg-tools
matrix:
# Test PPA
- MOLECULE_DISTRO=debian9
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
DEB_PACKAGES_NAME="['apt-add-gitlab','gitlab-buildpkg-tools']"
- MOLECULE_DISTRO=debian10
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
DEB_PACKAGES_NAME="['apt-add-gitlab','gitlab-buildpkg-tools']"
- MOLECULE_DISTRO=centos8
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
RPM_PACKAGES_NAME="['yum-add-gitlab','gitlab-buildpkg-tools']"
# - MOLECULE_DISTRO=centos8
# CI_PROJECT_NAME=gitlab-buildpkg-tools
# CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
# RPM_PACKAGES_NAME="['yum-add-gitlab','gitlab-buildpkg-tools']"
# Test additional
- MOLECULE_DISTRO=debian9
MOLECULE_PLAYBOOK=playbook-additional.yml
- MOLECULE_DISTRO=debian10
MOLECULE_PLAYBOOK=playbook-additional.yml
- MOLECULE_DISTRO=centos8
MOLECULE_PLAYBOOK=playbook-additional.yml
# - MOLECULE_DISTRO=centos8
# MOLECULE_PLAYBOOK=playbook-additional.yml
# Test enable disable repos (only for EL because that didn't make sense
# for Debian)
- MOLECULE_DISTRO=centos8
MOLECULE_PLAYBOOK=playbook-enable-disable-repos.yml
# - MOLECULE_DISTRO=centos8
# MOLECULE_PLAYBOOK=playbook-enable-disable-repos.yml
# Test PPA and additional
- MOLECULE_DISTRO=debian9
MOLECULE_PLAYBOOK=playbook-ppa-and-additional.yml
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
- MOLECULE_DISTRO=debian10
MOLECULE_PLAYBOOK=playbook-ppa-and-additional.yml
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
- MOLECULE_DISTRO=centos8
MOLECULE_PLAYBOOK=playbook-ppa-and-additional.yml
CI_PROJECT_NAME=gitlab-buildpkg-tools
CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
# - MOLECULE_DISTRO=centos8
# MOLECULE_PLAYBOOK=playbook-ppa-and-additional.yml
# CI_PROJECT_NAME=gitlab-buildpkg-tools
# CI_PAGES_URL=http://orange-opensource.gitlab.io/gitlab-buildpkg-tools
# Test priority (only for EL because that didn't make sense
# for Debian)
- MOLECULE_DISTRO=centos8
MOLECULE_PLAYBOOK=playbook-priority.yml
install:
# Install test dependencies.
- pip3 install molecule docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME $ROLE_NAMESPACE.$ROLE_NAME
- cd $ROLE_NAMESPACE.$ROLE_NAME
script:
# Run tests.
- molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/