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