-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.1 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
---
language: python
python:
- "3.8"
services: docker
env:
global:
- ROLE_NAME: knxd
matrix:
include:
- env:
- MOLECULE_DISTRO: debian9
- SCENARIO: default
- env:
- MOLECULE_DISTRO: debian10
- SCENARIO: default
- env:
- MOLECULE_DISTRO: debian10
- SCENARIO: deb_repo
- env:
- MOLECULE_DISTRO: debian11
- SCENARIO: default
- env:
- MOLECULE_DISTRO: debian11
- SCENARIO: deb_repo
install:
# Install test dependencies, newer molecule version do not depend on ansible
# must be installed separately
# - apt-get -y install ansible
- pip install molecule[lint,docker,ansible] docker pytest-testinfra ansible-lint
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME sseide.$ROLE_NAME
- cd sseide.$ROLE_NAME
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_LOGIN" --password-stdin
script:
# Run tests.
- molecule test --scenario-name $SCENARIO
notifications:
webhooks:
- https://galaxy.ansible.com/api/v1/notifications/