Add tests

Add Ubuntu Artful and Ubuntu Bionic tests to Travis
This commit is contained in:
Alessandro Fael Garcia 2018-06-27 13:36:26 -07:00
parent bd0c581ac1
commit f13cf016a8
3 changed files with 46 additions and 1 deletions

View File

@ -90,6 +90,36 @@ env:
- distribution: ubuntu
version: xenial
playbook: unit
- distribution: ubuntu
version: artful
playbook: basic
- distribution: ubuntu
version: artful
playbook: push
- distribution: ubuntu
version: artful
playbook: stable
- distribution: ubuntu
version: artful
playbook: template
- distribution: ubuntu
version: artful
playbook: unit
- distribution: ubuntu
version: bionic
playbook: basic
- distribution: ubuntu
version: bionic
playbook: push
- distribution: ubuntu
version: bionic
playbook: stable
- distribution: ubuntu
version: bionic
playbook: template
- distribution: ubuntu
version: bionic
playbook: unit
before_install:
- 'sudo docker pull ${distribution}:${version}'
- 'sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests'

View File

@ -28,7 +28,8 @@ nginx_repository:
# Default is mainline.
branch: mainline
# Install NGINX Unit and NGINX Unit packages.
# Install NGINX Unit and NGINX Unit modules.
# Use a list of supported NGINX Unit modules.
# Default is false.
unit_enable: false
unit_modules: null

View File

@ -0,0 +1,14 @@
FROM ubuntu:artful
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common && rm -rf /var/lib/apt/lists/*
RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \
git \
ansible \
apt-transport-https \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
ENTRYPOINT ["/sbin/init"]