-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
55 lines (50 loc) · 1.67 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
---
dist: bionic
language: python3
services: docker
env:
global:
- ROLE_NAME: phabricator
matrix:
- MOLECULE_DISTRO: centos8
MOLECULE_DOCKER_COMMAND: /usr/sbin/init
- MOLECULE_DISTRO: centos7
MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd
- MOLECULE_DISTRO: ubuntu2004
MOLECULE_DOCKER_COMMAND: /usr/sbin/init
- MOLECULE_DISTRO: ubuntu1804
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: debian10
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
- MOLECULE_DISTRO: debian9
MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd
install:
# Install test dependencies.
- sudo apt-get install -y python3-pip python3-setuptools
- sudo pip3 install ansible docker molecule[docker] yamllint ansible-lint
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv Ansible-${ROLE_NAME^} sdarwin.$ROLE_NAME
- cd sdarwin.$ROLE_NAME
script:
# Run tests.
- molecule --debug dependency
- molecule --debug lint
- molecule --debug cleanup
- molecule --debug destroy
- molecule --debug syntax
- molecule --debug create
- molecule --debug prepare
- travis_wait 30 molecule --debug converge
# This particular role is not currently idempotent. It runs a phab upgrade every time, stopping/starting services in the process.
# - molecule --debug idempotence
# molecule side_effect does not exist
# - molecule --debug side_effect
- molecule --debug verify
- molecule --debug cleanup
- molecule --debug destroy
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/