Refactor CI pipelien and enable molecule testing #1

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

View File

@ -25,15 +25,8 @@ steps:
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
# depends_on: [ clone ]
- name: dependencies
image: docker:git
commands:
- pwd
- mkdir -p ./library/
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
- name: molecule
image: quay.io/ansible/molecule
image: xoxys/molecule:gce
pull: always
environment:
GCE_SSH_KEY:
@ -50,12 +43,11 @@ steps:
ANSIBLE_TIMEOUT: 60
ANSIBLE_ROLES_PATH: /drone/src
commands:
- ansible-doc -t module iptables_raw
- mkdir $HOME/.ssh
- mkdir ./library/
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
- chmod 600 $HOME/.ssh/google_compute_engine
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
- pip install apache-libcloud pycrypto --user
- molecule create --scenario-name gce-centos-7
- molecule converge --scenario-name gce-centos-7
- molecule verify --scenario-name gce-centos-7