verify/.drone.yml
Tobias Trabelsi fc30e58479
All checks were successful
continuous-integration/drone/push Build is passing
python2 still needed for centos7
2021-10-05 22:14:02 +02:00

156 lines
4.1 KiB
YAML

---
kind: pipeline
type: kubernetes
name: test-debian
platform:
os: linux
arch: amd64
steps:
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/verify
- mv defaults /drone/src/tests/verify/
- mv handlers /drone/src/tests/verify/
- mv meta /drone/src/tests/verify/
- mv tasks /drone/src/tests/verify/
- mv vars /drone/src/tests/verify/
when:
event:
- push
- pull_request
- name: test-ubuntu16
image: lerentis/ansible:ubuntu-16.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
- name: test-ubuntu18
image: lerentis/ansible:ubuntu-18.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
- name: test-ubuntu20
image: lerentis/ansible:ubuntu-20.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
---
kind: pipeline
type: kubernetes
name: test-arch
platform:
os: linux
arch: amd64
steps:
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/verify
- mv defaults /drone/src/tests/verify/
- mv handlers /drone/src/tests/verify/
- mv meta /drone/src/tests/verify/
- mv tasks /drone/src/tests/verify/
- mv vars /drone/src/tests/verify/
when:
event:
- push
- pull_request
- name: test-arch
image: lerentis/ansible:arch
commands:
- pacman -Sy python2 glibc --noconfirm
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
---
kind: pipeline
type: kubernetes
name: test-centos
platform:
os: linux
arch: amd64
steps:
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/verify
- mv defaults /drone/src/tests/verify/
- mv handlers /drone/src/tests/verify/
- mv meta /drone/src/tests/verify/
- mv tasks /drone/src/tests/verify/
- mv vars /drone/src/tests/verify/
when:
event:
- push
- pull_request
- name: test-centos7
image: lerentis/ansible:centos-7
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e ansible_python_interpreter=/usr/bin/python2 -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
- name: test-centos8
image: lerentis/ansible:centos-8
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
- "prepare_workspace"
---
kind: pipeline
type: kubernetes
name: notify
platform:
os: linux
arch: amd64
steps:
- name: notify
image: appleboy/drone-telegram
settings:
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
to: 14852963
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
when:
status:
- failure
- success
depends_on:
- test-debian
- test-arch
- test-centos