--- variables: DEBIAN_FRONTEND: noninteractive molecule: image: $python script: - apt-get update -qq - apt-get -y -qq install yamllint docker.io - pip install --no-cache-dir tox - if [ -f tox.ini ] ; then tox ; fi - if [ ! -f tox.ini ] ; then pip install -r requirements.yml ; pip install ansible-lint ansible-core ; molecule test ; fi rules: - if: $CI_COMMIT_REF_NAME == "master" parallel: matrix: {% for platform in meta.galaxy_info.platforms %} {% for version in platform.versions %} {% for tag in distribution_version_mapping[platform.name][version] %} - image: "{{ platform_image_mapping[platform.name] }}" tag: "{{ tag }}" python: {{ matrix_overrides[platform_image_mapping[platform.name] | lower ]["python"] | default(default_python_version) }} {% endfor %} {% endfor %} {% endfor %} galaxy: script: - ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME} rules: - if: $CI_COMMIT_TAG != null