Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-04-29 15:40:21 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2022-04-29 15:40:21 +0300
commite27b973ecbd83ef910af9b0251781cb0f4006782 (patch)
treeeb925bf80a872f52e87b56c3193fb72eea29a199 /.drone.star
parent1a1b9fe27871eef12add7f1ffab511b263e83c7c (diff)
parentca7f788b1ca68ad3ea8062c3f3e537793df89b93 (diff)
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to '.drone.star')
-rw-r--r--.drone.star47
1 files changed, 44 insertions, 3 deletions
diff --git a/.drone.star b/.drone.star
index 217287400..3552b242b 100644
--- a/.drone.star
+++ b/.drone.star
@@ -22,7 +22,7 @@ OC_CI_DRONE_CANCEL_PREVIOUS_BUILDS = "owncloudci/drone-cancel-previous-builds"
OC_CI_PHP = "owncloudci/php:%s"
OC_CI_SQUISH = "owncloudci/squish:6.7-20220106-1008-qt515x-linux64"
OC_CI_TRANSIFEX = "owncloudci/transifex:latest"
-OC_TEST_MIDDLEWARE = "owncloud/owncloud-test-middleware:1.4.0"
+OC_TEST_MIDDLEWARE = "owncloud/owncloud-test-middleware:1.5.0"
OC_UBUNTU = "owncloud/ubuntu:20.04"
PLUGINS_GIT_ACTION = "plugins/git-action:1"
PLUGINS_S3 = "plugins/s3"
@@ -30,6 +30,7 @@ PLUGINS_SLACK = "plugins/slack"
PYTHON = "python"
THEGEEKLAB_DRONE_GITHUB_COMMENT = "thegeeklab/drone-github-comment:1"
TOOLHIPPIE_CALENS = "toolhippie/calens:latest"
+OC_CI_DRONE_SKIP_PIPELINE = "owncloudci/drone-skip-pipeline"
dir = {
"base": "/drone",
@@ -178,7 +179,7 @@ def build_and_test_client(ctx, c_compiler, cxx_compiler, build_type, generator,
"os": "linux",
"arch": "amd64",
},
- "steps": [
+ "steps": skipIfUnchanged(ctx, "unit-tests") + [
{
"name": "submodules",
"image": DOCKER_GIT,
@@ -224,7 +225,7 @@ def gui_tests(ctx, trigger = {}, depends_on = [], filterTags = [], version = "da
"os": "linux",
"arch": "amd64",
},
- "steps": [
+ "steps": skipIfUnchanged(ctx, "gui-tests") + [
{
"name": "submodules",
"image": DOCKER_GIT,
@@ -688,3 +689,43 @@ def cancelPreviousBuilds():
],
},
}
+
+def skipIfUnchanged(ctx, type):
+ if ("full-ci" in ctx.build.title.lower()):
+ return []
+
+ base = [
+ "^.github/.*",
+ "^.vscode/.*",
+ "^changelog/.*",
+ "README.md",
+ ".gitignore",
+ "CHANGELOG.md",
+ "CONTRIBUTING.md",
+ "COPYING",
+ "COPYING.documentation",
+ ]
+
+ skip = []
+ if type == "unit-tests":
+ skip = base + [
+ "^test/gui/.*",
+ ]
+
+ if type == "gui-tests":
+ skip = base + [
+ "^test/([^g]|g[^u]|gu[^i]).*",
+ ]
+
+ return [{
+ "name": "skip-if-unchanged",
+ "image": OC_CI_DRONE_SKIP_PIPELINE,
+ "settings": {
+ "ALLOW_SKIP_CHANGED": skip,
+ },
+ "when": {
+ "event": [
+ "pull_request",
+ ],
+ },
+ }]