Migrate to new TravisCI version
parent
8c6c4dc813
commit
6aea2bcb5f
46
.travis.yml
46
.travis.yml
|
@ -1,37 +1,35 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.6,<2.7'
|
global:
|
||||||
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.6,<2.7'
|
- VAGRANT_VERSION='2.2.18'
|
||||||
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.7,<2.8'
|
jobs:
|
||||||
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.7,<2.8'
|
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='>=2.11,<2.12'
|
||||||
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.8,<2.9'
|
- PLATFORM='docker-debian-bullseye' ANSIBLE_VERSION='>=2.11,<2.12'
|
||||||
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.8,<2.9'
|
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='>=2.11,<2.12'
|
||||||
- PLATFORM='docker-debian-stretch' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
|
||||||
- PLATFORM='docker-debian-buster' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
|
||||||
|
|
||||||
matrix:
|
os:
|
||||||
fast_finish: true
|
- linux
|
||||||
|
dist: focal
|
||||||
sudo: required
|
|
||||||
|
|
||||||
dist: trusty
|
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 3.8
|
||||||
- 3.6
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb
|
- sudo apt-get -q update
|
||||||
- sudo dpkg -i vagrant_2.0.1_x86_64.deb
|
- sudo apt-get install -y yamllint
|
||||||
|
- sudo wget -nv https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb
|
||||||
|
- sudo dpkg -i vagrant_${VAGRANT_VERSION}_x86_64.deb
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install "$ANSIBLE_VERSION"
|
- sudo pip install "ansible-core$ANSIBLE_VERSION"
|
||||||
- ansible-galaxy install -p ./tests HanXHX.php,master
|
- sudo pip install ansible-lint
|
||||||
|
- ansible-galaxy collection install community.general
|
||||||
|
- ansible-galaxy install -p ./tests HanXHX.php
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM
|
- VAGRANT_DEFAULT_PROVIDER=docker vagrant up $PLATFORM
|
||||||
|
@ -41,6 +39,14 @@ script:
|
||||||
&& (echo 'Idempotence test: pass' && exit 0)
|
&& (echo 'Idempotence test: pass' && exit 0)
|
||||||
|| (echo 'Idempotence test: fail' && exit 1)
|
|| (echo 'Idempotence test: fail' && exit 1)
|
||||||
- VAGRANT_DEFAULT_PROVIDER=docker vagrant status
|
- VAGRANT_DEFAULT_PROVIDER=docker vagrant status
|
||||||
|
- >
|
||||||
|
yamllint .
|
||||||
|
&& (echo 'YAML lint test: pass' && exit 0)
|
||||||
|
|| (echo 'YAML lint test: fail' && exit 1)
|
||||||
|
- >
|
||||||
|
ansible-lint -v tests/test.yml
|
||||||
|
&& (echo 'Ansible lint test: pass' && exit 0)
|
||||||
|
|| (echo 'Ansible lint test: fail' && exit 1)
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Nginx for Debian/FreeBSD Ansible role
|
Nginx for Debian/FreeBSD Ansible role
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.nginx-blue.svg)](https://galaxy.ansible.com/HanXHX/nginx/) [![Build Status](https://travis-ci.org/HanXHX/ansible-nginx.svg?branch=master)](https://travis-ci.org/HanXHX/ansible-nginx)
|
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.nginx-blue.svg)](https://galaxy.ansible.com/HanXHX/nginx/) [![Build Status](https://app.travis-ci.com/HanXHX/ansible-nginx.svg?branch=master)](https://app.travis-ci.com/HanXHX/ansible-nginx)
|
||||||
|
|
||||||
Install and configure Nginx on Debian/FreeBSD.
|
Install and configure Nginx on Debian/FreeBSD.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue