Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.85 KiB
Newer Older
# Copyright 2018-2023 Chris Croome
#
# This file is part of the Webarchitects Apache Ansible role.
#
# The Webarchitects Apache Ansible role is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# The Webarchitects Apache Ansible role is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>.
Chris Croome's avatar
Chris Croome committed
---
  ANSIBLE_CALLBACK_RESULT_FORMAT: "yaml"
  ANSIBLE_DISPLAY_SKIPPED_HOSTS: "0"
  ANSIBLE_FORCE_COLOR: "1"
  ANSIBLE_REMOTE_TMP: "/tmp"
  ANSIBLE_SHELL_ALLOW_WORLD_READABLE_TEMP: "1"
  MOLECULE_VERBOSITY: "0"
  PY_COLORS: "1"
Chris Croome's avatar
Chris Croome committed
before_script:
  - whoami
  - pwd
  - which ansible
  - ansible --version
  - which yamllint
  - yamllint --version
  - which molecule
  - molecule --version
stages:
  - trixie
  - bookworm
  # - bullseye
  - jammy
trixie:
  image: registry.git.coop/webarch/containers/images/trixie:20230822
  stage: trixie
  script:
    - molecule test --all
bookworm:
  image: registry.git.coop/webarch/containers/images/bookworm:20230822
  stage: bookworm
  script:
    - molecule test --all
# The Bullseye test run OK but Molecule never completes
# https://github.com/ansible/molecule/discussions/4020
# bullseye:
#   image: registry.git.coop/webarch/containers/images/bullseye:20230822
#   stage: bullseye
#   script:
#     - molecule test --all
jammy:
  image: registry.git.coop/webarch/containers/images/jammy:20230822
  stage: jammy
Chris Croome's avatar
Chris Croome committed
  script:
    - molecule test --all
Chris Croome's avatar
Chris Croome committed
...