From 445c2ade8448ac6aabd642a315d810cedd3baa92 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 23 Oct 2018 10:18:09 -0500 Subject: [PATCH] Update tests for optimum efficiency. --- .travis.yml | 5 +---- molecule/default/molecule.yml | 6 ++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91594fe..e408915 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,8 @@ env: - ROLE_NAME: kubernetes matrix: - MOLECULE_DISTRO: centos7 - MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd - - MOLECULE_DISTRO: ubuntu1604 - MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd + - MOLECULE_DISTRO: ubuntu1804 - MOLECULE_DISTRO: debian9 - MOLECULE_DOCKER_COMMAND: /lib/systemd/systemd install: # Install test dependencies. diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index ef11d53..b1f6e45 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -9,11 +9,13 @@ lint: config-file: molecule/default/yaml-lint.yml platforms: - name: instance - image: geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible - command: ${MOLECULE_DOCKER_COMMAND:-"sleep infinity"} + image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest" + command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro - /var/lib/docker + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro privileged: true pre_build_image: true provisioner: