forked from geerlingguy/ansible-role-solr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (43 loc) · 1.32 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
---
language: python
services: docker
env:
global:
- ROLE_NAME: solr
matrix:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: debian10
# Solr 7.
- MOLECULE_DISTRO: centos7
MOLECULE_PLAYBOOK: playbook-solr-7.yml
- MOLECULE_DISTRO: debian10
MOLECULE_PLAYBOOK: playbook-solr-7.yml
# Solr 6.
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_PLAYBOOK: playbook-solr-6.yml
# Solr 5.
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_PLAYBOOK: playbook-solr-5.yml
# Solr 4.
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_PLAYBOOK: playbook-solr-4.yml
# Solr 3.
- MOLECULE_DISTRO: ubuntu1604
MOLECULE_PLAYBOOK: playbook-solr-3.yml
before_install:
# Upgrade Docker to work with docker-py.
- curl https://gist.githubusercontent.com/geerlingguy/ce883ad4aec6a5f1187ef93bd338511e/raw/36612d28981d92863f839c5aefe5b7dd7193d6c6/travis-ci-docker-upgrade.sh | sudo bash
install:
# Install test dependencies.
- pip install molecule yamllint ansible-lint docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME geerlingguy.$ROLE_NAME
- cd geerlingguy.$ROLE_NAME
script:
# Run tests.
- molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/