Skip to content

Commit f13cf01

Browse files
committed
Add tests
Add Ubuntu Artful and Ubuntu Bionic tests to Travis
1 parent bd0c581 commit f13cf01

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,36 @@ env:
9090
- distribution: ubuntu
9191
version: xenial
9292
playbook: unit
93+
- distribution: ubuntu
94+
version: artful
95+
playbook: basic
96+
- distribution: ubuntu
97+
version: artful
98+
playbook: push
99+
- distribution: ubuntu
100+
version: artful
101+
playbook: stable
102+
- distribution: ubuntu
103+
version: artful
104+
playbook: template
105+
- distribution: ubuntu
106+
version: artful
107+
playbook: unit
108+
- distribution: ubuntu
109+
version: bionic
110+
playbook: basic
111+
- distribution: ubuntu
112+
version: bionic
113+
playbook: push
114+
- distribution: ubuntu
115+
version: bionic
116+
playbook: stable
117+
- distribution: ubuntu
118+
version: bionic
119+
playbook: template
120+
- distribution: ubuntu
121+
version: bionic
122+
playbook: unit
93123
before_install:
94124
- 'sudo docker pull ${distribution}:${version}'
95125
- 'sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests'

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ nginx_repository:
2828
# Default is mainline.
2929
branch: mainline
3030

31-
# Install NGINX Unit and NGINX Unit packages.
31+
# Install NGINX Unit and NGINX Unit modules.
32+
# Use a list of supported NGINX Unit modules.
3233
# Default is false.
3334
unit_enable: false
3435
unit_modules: null
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ubuntu:artful
2+
3+
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common && rm -rf /var/lib/apt/lists/*
4+
5+
RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \
6+
git \
7+
ansible \
8+
apt-transport-https \
9+
curl \
10+
&& rm -rf /var/lib/apt/lists/*
11+
12+
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
13+
14+
ENTRYPOINT ["/sbin/init"]

0 commit comments

Comments
 (0)