From ea52d6c6d2bd8bec937275fba4ae00496001e547 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 13 Oct 2019 02:46:52 +0200 Subject: [PATCH 1/3] dont run twice --- .drone.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 034b62dd..759b42a2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,6 @@ +--- kind: pipeline -name: gitnex-ci +name: gitnex-ci-confirm steps: @@ -8,6 +9,16 @@ steps: commands: - ./gradlew test +trigger: + event: + - pull_request + +--- +kind: pipeline +name: gitnex-ci-build + +steps: + - name: build image: nextcloudci/android:android-49 commands: @@ -19,4 +30,3 @@ steps: trigger: event: - push - - pull_request From dac0f690d8c2bf446b251cb1d99a35d6b7151982 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 14 Oct 2019 11:06:46 +0200 Subject: [PATCH 2/3] more precise name --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 759b42a2..ad177327 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ --- kind: pipeline -name: gitnex-ci-confirm +name: gitnex-ci-test steps: From 6da4398369f51dd9a8dba1681cf67aed242cd5f2 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 14 Oct 2019 11:27:04 +0200 Subject: [PATCH 3/3] dont run with empty task --- .drone.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad177327..7172c084 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,10 +23,9 @@ steps: image: nextcloudci/android:android-49 commands: - ./gradlew build - when: - branch: - - master trigger: event: - push + branch: + - master