ansible-nginx/.travis.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

env:
2018-10-03 19:09:20 +07:00
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.6,<2.7'
- PLATFORM='docker-debian-stretch-sury' ANSIBLE_VERSION='ansible>=2.6,<2.7'
2019-04-25 19:37:15 +07:00
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.6,<2.7'
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.7,<2.8'
- PLATFORM='docker-debian-stretch-sury' ANSIBLE_VERSION='ansible>=2.7,<2.8'
2019-04-25 19:37:15 +07:00
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.7,<2.8'
2015-08-04 17:26:38 +07:00
2018-03-15 18:56:12 +07:00
2018-10-03 19:09:20 +07:00
matrix:
fast_finish: true
2015-10-08 00:31:12 +07:00
sudo: required
2015-08-04 17:26:38 +07:00
2016-10-13 15:19:24 +07:00
dist: trusty
2015-10-08 00:31:12 +07:00
language: python
2019-04-19 19:38:47 +07:00
python: 2.7
2015-10-08 00:31:12 +07:00
services:
- docker
2015-08-04 17:26:38 +07:00
before_install:
- wget https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb
- sudo dpkg -i vagrant_2.0.1_x86_64.deb
install:
- pip install "$ANSIBLE_VERSION"
- ansible-galaxy install -p ./tests HanXHX.php,master
- mv ./tests/HanXHX.php ./tests/TMP__HanXHX.php
2015-08-04 17:26:38 +07:00
script:
- VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM
- >
VAGRANT_DEFAULT_PROVIDER=docker vagrant provision $PLATFORM
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
- VAGRANT_DEFAULT_PROVIDER=docker vagrant status
2016-03-05 18:06:08 +07:00
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/