From c15e57febe2fdb68a05ff8840d9a88c6cf08d2da Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 27 Mar 2023 09:38:45 +0200 Subject: [PATCH] chore: add tests in DroneCI pt2 --- .drone.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 72c253b..313cc18 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,26 @@ steps: - ./mvnw package -B -DskipTests=true - name: Tests image: quay.io/testcontainers/dind-drone-plugin - build_image: eclipse-temurin:17-jdk - cmd: ./mvnw test - prefetch_images: - - "postgres:13-alpine" \ No newline at end of file + environment: + CI_WORKSPACE: "/drone/src" + settings: + cmd: ./mvnw test + build_image: eclipse-temurin:17-jdk + prefetch_images: + - "postgres:13-alpine" + volumes: + - name: dockersock + path: /var/run + +# Specify docker:dind as a service +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: + - name: dockersock + temp: {} \ No newline at end of file