From efa96ece3ff0a3f3e612db39df03da915f3b61a5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 18 Oct 2020 02:49:28 +0200 Subject: [PATCH] Add CI. --- .drone.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..659755e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,38 @@ +# -*- fill-column: 1000 -*- +kind: pipeline +name: Validate JSON + +volumes: +- name: debian-package-cache + host: + path: /var/cache/debian-package-cache + +steps: +- name: jsonlint-php + image: debian:buster-slim + pull: always + environment: + DEBIAN_FRONTEND: noninteractive + LANG: C.utf8 + commands: + - rm /etc/apt/apt.conf.d/docker-clean + - alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get' + - apt-get update -q + - apt-get install -qq jsonlint + - jsonlint-php *.json + volumes: + - name: debian-package-cache + path: /var/cache/apt/archives + +- name: notify + image: drillster/drone-email + pull: always + settings: + host: mail.tzend.de + from: drone@tzend.de + username: + from_secret: email_username + password: + from_secret: email_password + when: + status: [ changed, failure ]