From 4e228f4e68a2904f3b9c2e91f894367fe381305f Mon Sep 17 00:00:00 2001
From: Stefan Kalscheuer <stefan@stklcode.de>
Date: Sat, 30 Nov 2024 18:33:03 +0100
Subject: [PATCH] ci: remove Drone CI configuration

All build systems now GitHub Actions workflows, so we can remove the
alternative configuration and only keep a single pipeline definition.
---
 .drone.yml               | 31 -------------------------------
 .github/workflows/ci.yml |  2 +-
 2 files changed, 1 insertion(+), 32 deletions(-)
 delete mode 100644 .drone.yml

diff --git a/.drone.yml b/.drone.yml
deleted file mode 100644
index 9769dc4..0000000
--- a/.drone.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-kind: pipeline
-type: docker
-name: java11
-
-steps:
-  - name: test
-    image: eclipse-temurin:11-jdk
-    commands:
-      - ./mvnw -B clean test
-
----
-kind: pipeline
-type: docker
-name: java17
-
-steps:
-  - name: test
-    image: eclipse-temurin:17-jdk
-    commands:
-      - ./mvnw -B clean test
-
----
-kind: pipeline
-type: docker
-name: java21
-
-steps:
-  - name: test
-    image: eclipse-temurin:21-jdk
-    commands:
-      - ./mvnw -B clean test
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ada535b..dd7bf2a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,7 +22,7 @@ jobs:
       - name: Test
         run: ./mvnw -B -P coverage clean verify
       - name: Analysis
-        if: matrix.analysis
+        if: matrix.analysis && env.SONAR_TOKEN != ''
         run: >
           ./mvnw -B sonar:sonar
           -Dsonar.host.url=https://sonarcloud.io