From f5c087b5b27e538215fba988a4e4e721864c5453 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Thu, 14 Jun 2018 18:01:02 +0200 Subject: [PATCH] Added Drone CI contig --- .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..67d95fa --- /dev/null +++ b/.drone.yml @@ -0,0 +1,38 @@ +clone: + git: + image: plugins/git + depth: 1 + skip_verify: true + +pipeline: + restore-cache: + image: drillster/drone-volume-cache + restore: true + mount: + - vendor + volumes: + - /var/lib/drone/cache:/cache + cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ] + + pre-build: + image: composer + commands: + - composer install + test: + image: composer + commands: + - ./vendor/bin/robo test + + test-style: + image: composer + commands: + - ./vendor/bin/robo test:cs + + rebuild-cache: + image: drillster/drone-volume-cache + rebuild: true + mount: + - vendor + volumes: + - /var/lib/drone/cache:/cache + cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ]