Refactor CI pipelien and enable molecule testing #1

Merged
xoxys merged 131 commits from molecule-dev into master 2019-03-25 21:23:40 +00:00
Showing only changes of commit ddb2541034 - Show all commits

View File

@ -1,35 +1,35 @@
# --- ---
# kind: pipeline kind: pipeline
# name: linting name: linting
# platform: platform:
# os: linux os: linux
# arch: amd64 arch: amd64
# steps: steps:
# - name: ansible-latest - name: ansible-latest
# pull: always pull: always
# image: python:3.7 image: python:3.7
# commands: commands:
# - pip install ansible ansible-later -qq - pip install ansible ansible-later -qq
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
# - "git ls-files *[^LICENSE,.md,molecule,.ini] | xargs ansible-later -c ~/policy/config.ini" - "git ls-files *[^LICENSE,.md,molecule,.ini] | xargs ansible-later -c ~/policy/config.ini"
# environment: environment:
# PY_COLORS: 1 PY_COLORS: 1
# depends_on: depends_on:
# - clone - clone
# - name: ansible-master - name: ansible-master
# pull: always pull: always
# image: python:3.7 image: python:3.7
# commands: commands:
# - "pip install git+https://github.com/ansible/ansible.git@devel ansible-later -qq" - "pip install git+https://github.com/ansible/ansible.git@devel ansible-later -qq"
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
# - "git ls-files *[^LICENSE,.md,molecule,.ini] | xargs ansible-later -c ~/policy/config.ini" - "git ls-files *[^LICENSE,.md,molecule,.ini] | xargs ansible-later -c ~/policy/config.ini"
# environment: environment:
# PY_COLORS: 1 PY_COLORS: 1
# depends_on: depends_on:
# - clone - clone
--- ---
kind: pipeline kind: pipeline
@ -48,9 +48,7 @@ steps:
pull: always pull: always
image: xoxys/molecule:gce image: xoxys/molecule:gce
commands: commands:
#- /bin/bash /docker-entrypoint.sh - /bin/bash /docker-entrypoint.sh
- echo "${HOME}" > test.txt
- cat test.txt
- molecule create --scenario-name gce-centos-7 - molecule create --scenario-name gce-centos-7
- molecule converge --scenario-name gce-centos-7 - molecule converge --scenario-name gce-centos-7
- molecule verify --scenario-name gce-centos-7 - molecule verify --scenario-name gce-centos-7
@ -70,7 +68,7 @@ steps:
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
PY_COLORS: 1 PY_COLORS: 1
# depends_on: depends_on:
# - linting - linting
# ... ...