mirror of https://github.com/ansible/ansible.git
Add Python 3 CI support. (#17209)
parent
a9322e8b8b
commit
e2e7390adc
@ -0,0 +1,61 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
acl \
|
||||
apache2 \
|
||||
bzip2 \
|
||||
curl \
|
||||
debhelper \
|
||||
debianutils \
|
||||
devscripts \
|
||||
docbook-xml \
|
||||
dpkg-dev \
|
||||
fakeroot \
|
||||
gawk \
|
||||
git \
|
||||
iproute2 \
|
||||
libxml2-utils \
|
||||
locales \
|
||||
lsb-release \
|
||||
make \
|
||||
mysql-server \
|
||||
openssh-client \
|
||||
openssh-server \
|
||||
python3-coverage \
|
||||
python3-dbus \
|
||||
python3-httplib2 \
|
||||
python3-jinja2 \
|
||||
python3-mock \
|
||||
python3-mysqldb \
|
||||
python3-nose \
|
||||
python3-paramiko \
|
||||
python3-passlib \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python3-virtualenv \
|
||||
python3-wheel \
|
||||
python3-yaml \
|
||||
reprepro \
|
||||
rsync \
|
||||
ruby \
|
||||
subversion \
|
||||
sudo \
|
||||
unzip \
|
||||
virtualenv \
|
||||
xsltproc \
|
||||
zip \
|
||||
&& \
|
||||
apt-get clean
|
||||
|
||||
RUN rm /etc/apt/apt.conf.d/docker-clean
|
||||
RUN mkdir /etc/ansible/
|
||||
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
||||
RUN locale-gen en_US.UTF-8
|
||||
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
|
||||
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
|
||||
for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
|
||||
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
||||
RUN pip3 install junit-xml python3-keyczar
|
||||
ENV container=docker
|
||||
CMD ["/sbin/init"]
|
@ -0,0 +1,44 @@
|
||||
test_apache2_module
|
||||
test_apt
|
||||
test_apt_repository
|
||||
test_assemble
|
||||
test_async
|
||||
test_authorized_key
|
||||
test_become
|
||||
test_binary
|
||||
test_changed_when
|
||||
test_command_shell
|
||||
test_conditionals
|
||||
test_copy
|
||||
test_embedded_module
|
||||
test_facts_d
|
||||
test_failed_when
|
||||
test_fetch
|
||||
test_file
|
||||
test_filters
|
||||
test_gem
|
||||
test_get_url
|
||||
test_git
|
||||
test_good_parsing
|
||||
test_handlers
|
||||
test_hg
|
||||
test_iterators
|
||||
test_lineinfile
|
||||
test_lookups
|
||||
test_mysql_db
|
||||
test_mysql_user
|
||||
test_mysql_variables
|
||||
test_pip
|
||||
test_postgresql
|
||||
test_service
|
||||
test_special_vars
|
||||
test_stat
|
||||
test_subversion
|
||||
test_sudo
|
||||
test_synchronize
|
||||
test_task_ordering
|
||||
test_template
|
||||
test_unarchive
|
||||
test_until
|
||||
test_uri
|
||||
test_var_blending
|
@ -0,0 +1,14 @@
|
||||
s/ check_mode / /
|
||||
s/ environment / /
|
||||
s/ includes / /
|
||||
s/ no_log / /
|
||||
s/ pull / /
|
||||
s/ test_async_conditional / /
|
||||
s/ test_binary_modules$/ /
|
||||
s/ test_connection / /
|
||||
s/ test_handlers / /
|
||||
s/ test_hash / /
|
||||
s/ test_lookup_paths / /
|
||||
s/ test_var_precedence / /
|
||||
s/ test_vault / /
|
||||
s/ unicode / /
|
Loading…
Reference in New Issue