2018-01-10 23:46:32 +01:00
|
|
|
---
|
2019-08-03 12:53:21 +02:00
|
|
|
language: python
|
2020-08-19 18:39:17 +02:00
|
|
|
services: docker
|
2020-09-16 18:58:32 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- main
|
2020-03-25 18:43:32 +01:00
|
|
|
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
|
2020-09-20 12:15:28 +02:00
|
|
|
- name: (Debian/Ubuntu) Install NGINX Plus
|
2020-09-30 14:26:13 +02:00
|
|
|
if: not (type = "pull_request" and fork = "true")
|
2020-09-20 12:15:28 +02:00
|
|
|
env:
|
|
|
|
scenario: plus
|
|
|
|
- name: (Alpine Linux) Install NGINX Plus
|
2020-09-30 14:26:13 +02:00
|
|
|
if: not (type = "pull_request" and fork = "true")
|
2020-09-20 12:15:28 +02:00
|
|
|
env:
|
|
|
|
scenario: plus_alpine
|
|
|
|
- name: (CentOS) Install NGINX Plus
|
2020-09-30 14:26:13 +02:00
|
|
|
if: not (type = "pull_request" and fork = "true")
|
2020-09-20 12:15:28 +02:00
|
|
|
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
|
2020-08-28 10:30:23 +02:00
|
|
|
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
|
2019-08-03 12:53:21 +02:00
|
|
|
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
|
2020-10-08 21:45:50 +02:00
|
|
|
- pip install yamllint==1.25.0
|
2020-11-06 16:02:24 +01:00
|
|
|
- pip install 'molecule[docker]'==3.1.5
|
2020-08-28 10:30:23 +02:00
|
|
|
- pip install docker==4.3.1
|
2018-01-10 23:46:32 +01:00
|
|
|
script:
|
2019-11-24 02:10:55 +01:00
|
|
|
- travis_wait 50 molecule test -s $scenario
|
2018-01-10 23:46:32 +01:00
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|