ansible-role-nginx/.travis.yml

87 lines
2.6 KiB
YAML
Raw Normal View History

2018-01-10 23:46:32 +01:00
---
language: python
2020-08-19 18:39:17 +02:00
services: docker
branches:
only:
- main
jobs:
include:
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Install specific version
2020-06-08 15:46:01 +02:00
env:
scenario: default
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Install specific version
2020-06-08 15:46:01 +02:00
env:
scenario: default_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Install specific version
2020-06-08 15:46:01 +02:00
env:
scenario: default_centos
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Cleanup config and try to install modules
2020-06-08 15:46:01 +02:00
env:
scenario: module
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Cleanup config and try to install modules
2020-06-08 15:46:01 +02:00
env:
scenario: module_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Cleanup config and try to install modules
2020-06-08 15:46:01 +02:00
env:
scenario: module_centos
- name: (Debian/Ubuntu) Install NGINX Plus
env:
scenario: plus
- name: (Alpine Linux) Install NGINX Plus
env:
scenario: plus_alpine
- name: (CentOS) Install NGINX Plus
env:
scenario: plus_centos
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Install stable branch and push a config
2020-06-08 15:46:01 +02:00
env:
scenario: stable_push
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Install stable branch and push a config
2020-06-08 15:46:01 +02:00
env:
scenario: stable_push_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Install stable branch and push a config
2020-06-08 15:46:01 +02:00
env:
scenario: stable_push_centos
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Test config templates
2020-06-08 15:46:01 +02:00
env:
scenario: template
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Test config templates
2020-06-08 15:46:01 +02:00
env:
scenario: template_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Test config templates
2020-06-08 15:46:01 +02:00
env:
scenario: template_centos
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Install NGINX Unit
2020-06-08 15:46:01 +02:00
env:
scenario: unit
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Install NGINX Unit
2020-06-08 15:46:01 +02:00
env:
scenario: unit_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Install NGINX Unit
2020-06-08 15:46:01 +02:00
env:
scenario: unit_centos
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Build from source
2020-06-08 15:46:01 +02:00
env:
scenario: source
2020-09-19 17:32:17 +02:00
- name: (Alpine Linux) Build from source
2020-06-08 15:46:01 +02:00
env:
scenario: source_alpine
2020-09-19 17:32:17 +02:00
- name: (CentOS) Build from source
2020-06-08 15:46:01 +02:00
env:
scenario: source_centos
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
install:
2020-09-03 14:23:01 +02:00
- pip install ansible==2.9.13
2020-09-19 02:43:14 +02:00
- pip install ansible-lint==4.3.5
2020-09-09 16:10:42 +02:00
- pip install yamllint==1.24.2
- pip install molecule==3.0.8
- pip install docker==4.3.1
2018-01-10 23:46:32 +01:00
script:
- travis_wait 50 molecule test -s $scenario
2018-01-10 23:46:32 +01:00
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/