ansible-role-nginx/.travis.yml

91 lines
2.8 KiB
YAML
Raw Permalink 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
if: not (type = "pull_request" and fork = "true")
env:
scenario: plus
- name: (Alpine Linux) Install NGINX Plus
if: not (type = "pull_request" and fork = "true")
env:
scenario: plus_alpine
- name: (CentOS) Install NGINX Plus
if: not (type = "pull_request" and fork = "true")
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-11-06 16:02:24 +01:00
- pip install ansible-base==2.10.3
- pip install ansible==2.10.3
- pip install ansible-lint==4.3.7
- pip install yamllint==1.25.0
2020-11-06 16:02:24 +01:00
- pip install 'molecule[docker]'==3.1.5
- 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/