From 042122465af01ca6c6e3d8fee073674dcb5f7002 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 4 Aug 2022 06:55:32 +0200 Subject: [PATCH] Use tox on GitLab too. --- templates/gitlab-ci.yml.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/gitlab-ci.yml.j2 b/templates/gitlab-ci.yml.j2 index 2adb71c..a8c67c7 100644 --- a/templates/gitlab-ci.yml.j2 +++ b/templates/gitlab-ci.yml.j2 @@ -1,5 +1,5 @@ --- -image: "robertdebock/github-action-molecule:4.0.6" +image: "robertdebock/github-action-molecule:4.0.8" services: - docker:dind @@ -10,7 +10,8 @@ variables: molecule: script: - - image=${image} tag=${tag} molecule test + - if [ -f tox.ini ] ; then tox ; fi + - if [ ! -f tox.ini ; then molecule test ; fi rules: - if: $CI_COMMIT_REF_NAME == "master" retry: 1