update-system/.drone.yml

189 lines
4.5 KiB
YAML
Raw Normal View History

2021-01-30 18:50:13 +00:00
---
kind: pipeline
2021-01-30 19:00:45 +00:00
type: kubernetes
2021-06-26 11:58:43 +00:00
name: prepare_workspace
2021-01-30 18:50:13 +00:00
platform:
os: linux
arch: amd64
steps:
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/update-system
- mv defaults /drone/src/tests/update-system/
- mv files /drone/src/tests/update-system/
- mv handlers /drone/src/tests/update-system/
- mv meta /drone/src/tests/update-system/
- mv tasks /drone/src/tests/update-system/
- mv vars /drone/src/tests/update-system/
when:
event:
- push
- pull_request
2021-06-26 11:58:43 +00:00
---
kind: pipeline
type: kubernetes
name: test-debian
platform:
os: linux
arch: amd64
steps:
2021-06-26 12:03:53 +00:00
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/update-system
- mv defaults /drone/src/tests/update-system/
- mv files /drone/src/tests/update-system/
- mv handlers /drone/src/tests/update-system/
- mv meta /drone/src/tests/update-system/
- mv tasks /drone/src/tests/update-system/
- mv vars /drone/src/tests/update-system/
when:
event:
- push
- pull_request
2021-01-30 18:50:13 +00:00
- name: test-debian7
image: lerentis/ansible:debian-7
commands:
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-01-30 18:50:13 +00:00
- name: test-ubuntu16
image: lerentis/ansible:ubuntu-16.04
2021-01-30 18:50:13 +00:00
commands:
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-01-30 18:50:13 +00:00
- name: test-ubuntu18
image: lerentis/ansible:ubuntu-18.04
2021-01-30 18:50:13 +00:00
commands:
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-01-30 18:50:13 +00:00
- name: test-ubuntu20
image: lerentis/ansible:ubuntu-20.04
2021-01-30 18:50:13 +00:00
commands:
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-06-26 11:58:43 +00:00
depends_on:
- prepare_workspace
---
kind: pipeline
type: kubernetes
name: test-arch
platform:
os: linux
arch: amd64
steps:
2021-01-30 18:50:13 +00:00
2021-06-26 12:03:53 +00:00
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/update-system
- mv defaults /drone/src/tests/update-system/
- mv files /drone/src/tests/update-system/
- mv handlers /drone/src/tests/update-system/
- mv meta /drone/src/tests/update-system/
- mv tasks /drone/src/tests/update-system/
- mv vars /drone/src/tests/update-system/
when:
event:
- push
- pull_request
2021-01-30 18:50:13 +00:00
- name: test-arch
image: lerentis/ansible:arch
commands:
2021-06-26 12:47:39 +00:00
- pacman -Sy python2 glibc --noconfirm
2021-01-30 18:50:13 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-06-26 11:58:43 +00:00
depends_on:
- prepare_workspace
---
kind: pipeline
type: kubernetes
name: test-centos
platform:
os: linux
arch: amd64
steps:
2021-01-30 18:50:13 +00:00
2021-06-26 12:03:53 +00:00
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/update-system
- mv defaults /drone/src/tests/update-system/
- mv files /drone/src/tests/update-system/
- mv handlers /drone/src/tests/update-system/
- mv meta /drone/src/tests/update-system/
- mv tasks /drone/src/tests/update-system/
- mv vars /drone/src/tests/update-system/
when:
event:
- push
- pull_request
2021-01-30 18:50:13 +00:00
- name: test-centos7
image: lerentis/ansible:centos-7
commands:
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
2021-08-11 19:31:40 +00:00
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true"
2021-06-26 12:03:53 +00:00
depends_on:
- "prepare_workspace"
2021-06-26 11:58:43 +00:00
depends_on:
- prepare_workspace
---
kind: pipeline
type: kubernetes
name: notify
platform:
os: linux
arch: amd64
steps:
2021-01-30 18:50:13 +00:00
- 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
2021-06-26 11:58:43 +00:00
depends_on:
- prepare_workspace
- test-debian
- test-arch
- test-centos