Add tests
Add Ubuntu Artful and Ubuntu Bionic tests to Travis
This commit is contained in:
parent
bd0c581ac1
commit
f13cf016a8
30
.travis.yml
30
.travis.yml
@ -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'
|
||||
|
@ -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
|
||||
|
14
tests/dockerfiles/Dockerfile.ubuntu-artful
Normal file
14
tests/dockerfiles/Dockerfile.ubuntu-artful
Normal 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"]
|
Loading…
Reference in New Issue
Block a user