Refactor CI pipelien and enable molecule testing #1
39
.drone.yml
39
.drone.yml
@ -7,23 +7,28 @@ workspace:
|
|||||||
path: xoxys.nginx
|
path: xoxys.nginx
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: ansible-latest
|
- name: ansible-latest
|
||||||
# image: python:2.7
|
image: python:2.7
|
||||||
# pull: always
|
pull: always
|
||||||
# commands:
|
environment:
|
||||||
# - pip install ansible ansible-later -q
|
PY_COLORS: 1
|
||||||
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
commands:
|
||||||
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
- pip install ansible ansible-later -qq
|
||||||
# depends_on: [ clone ]
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
||||||
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
||||||
|
depends_on: [ clone ]
|
||||||
|
|
||||||
# - name: ansible-master
|
- name: ansible-master
|
||||||
# image: python:2.7
|
image: python:2.7
|
||||||
# pull: always
|
pull: always
|
||||||
# commands:
|
environment:
|
||||||
# - pip install ansible ansible-later -q
|
PY_COLORS: 1
|
||||||
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
commands:
|
||||||
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
- pip install git+https://github.com/ansible/ansible.git@devel -qq
|
||||||
# depends_on: [ clone ]
|
- pip install ansible-later -qq
|
||||||
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
||||||
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
||||||
|
depends_on: [ clone ]
|
||||||
|
|
||||||
- name: molecule
|
- name: molecule
|
||||||
image: xoxys/molecule:gce
|
image: xoxys/molecule:gce
|
||||||
@ -40,7 +45,7 @@ steps:
|
|||||||
GCE_SSH_USER:
|
GCE_SSH_USER:
|
||||||
from_secret: gce_ssh_user
|
from_secret: gce_ssh_user
|
||||||
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
|
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
|
||||||
CLICOLOR_FORCE: 1
|
PY_COLORS: 1
|
||||||
commands:
|
commands:
|
||||||
- mkdir ./library/
|
- mkdir ./library/
|
||||||
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
|
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
|
||||||
|
Loading…
Reference in New Issue
Block a user