update drone

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-04-13 13:14:59 +02:00
parent 5948417cee
commit d84f3043ca
9 changed files with 25 additions and 22 deletions

View File

@@ -43,22 +43,22 @@ DEFAULT_NODEJS_VERSION = "14"
config = { config = {
"modules": [ "modules": [
# if you add a module here please also add it to the root level Makefile # if you add a module here please also add it to the root level Makefile
"accounts", "extensions/accounts",
"audit", "extensions/audit",
"glauth", "extensions/glauth",
"graph-explorer", "extensions/graph-explorer",
"graph", "extensions/graph",
"idp", "extensions/idp",
"extensions/ocs",
"extensions/proxy",
"extensions/settings",
"extensions/storage",
"extensions/store",
"extensions/thumbnails",
"extensions/web",
"extensions/webdav",
"ocis-pkg", "ocis-pkg",
"ocis", "ocis",
"ocs",
"proxy",
"settings",
"storage",
"store",
"thumbnails",
"web",
"webdav",
], ],
"cs3ApiTests": { "cs3ApiTests": {
"skip": False, "skip": False,
@@ -301,7 +301,7 @@ def testOcisModule(ctx, module):
"commands": [ "commands": [
"mkdir -p cache/checkstyle", "mkdir -p cache/checkstyle",
"make -C %s ci-golangci-lint" % (module), "make -C %s ci-golangci-lint" % (module),
"mv %s/checkstyle.xml cache/checkstyle/%s_checkstyle.xml" % (module, module), "mv %s/checkstyle.xml cache/checkstyle/$(basename %s)_checkstyle.xml" % (module, module),
], ],
"volumes": [stepVolumeGo], "volumes": [stepVolumeGo],
}, },
@@ -311,7 +311,7 @@ def testOcisModule(ctx, module):
"commands": [ "commands": [
"mkdir -p cache/coverage", "mkdir -p cache/coverage",
"make -C %s test" % (module), "make -C %s test" % (module),
"mv %s/coverage.out cache/coverage/%s_coverage.out" % (module, module), "mv %s/coverage.out cache/coverage/$(basename %s)_coverage.out" % (module, module),
], ],
"volumes": [stepVolumeGo], "volumes": [stepVolumeGo],
}, },

2
.gitignore vendored
View File

@@ -1,5 +1,7 @@
*/coverage.out */coverage.out
extensions/*/coverage.out
*/checkstyle.xml */checkstyle.xml
extensions/*/checkstyle.xml
*/package-lock.json */package-lock.json
ocis/config/identifier-registration.yaml ocis/config/identifier-registration.yaml

View File

@@ -1,6 +1,6 @@
SKIP_CONFIG_DOCS_GENERATE ?= 0 SKIP_CONFIG_DOCS_GENERATE ?= 0
CONFIG_DOCS_BASE_PATH ?= ../docs/extensions CONFIG_DOCS_BASE_PATH ?= ../../docs/extensions
.PHONY: config-docs-generate .PHONY: config-docs-generate
config-docs-generate: #$(FLAEX) config-docs-generate: #$(FLAEX)

View File

@@ -20,5 +20,5 @@ buf-generate: $(BUF) protoc-deps $(SHA1_LOCK_FILE)
$(SHA1_LOCK_FILE): $(SHA1_LOCK_FILE):
@echo "generating protobuf content" @echo "generating protobuf content"
cd ../protogen/proto && $(BUF) generate cd ../../protogen/proto && $(BUF) generate
find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > $(SHA1_LOCK_FILE) find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > $(SHA1_LOCK_FILE)

1
docs/.gitignore vendored
View File

@@ -1,3 +1,4 @@
hugo/ hugo/
grpc_apis/ grpc_apis/
mutagen.yml.lock mutagen.yml.lock
helpers/output/*

View File

@@ -19,7 +19,7 @@ var targets = map[string]string{
func main() { func main() {
fmt.Println("Getting relevant packages") fmt.Println("Getting relevant packages")
paths, err := filepath.Glob("../../*/pkg/config/defaults/defaultconfig.go") paths, err := filepath.Glob("../../extensions/*/pkg/config/defaults/defaultconfig.go")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -15,7 +15,7 @@ import (
func main() { func main() {
replacer := strings.NewReplacer( replacer := strings.NewReplacer(
"github.com/owncloud/ocis/", "", "github.com/owncloud/ocis/extensions/", "",
"/pkg/config/defaults", "", "/pkg/config/defaults", "",
) )
cfg := map[string]string{ cfg := map[string]string{

View File

@@ -28,7 +28,7 @@ if err != nil {
log.Fatal(err) log.Fatal(err)
} }
replacer := strings.NewReplacer( replacer := strings.NewReplacer(
"github.com/owncloud/ocis/", "", "github.com/owncloud/ocis/extensions/", "",
"/pkg/config/defaults", "", "/pkg/config/defaults", "",
) )
var fields []ConfigField var fields []ConfigField

View File

@@ -33,7 +33,7 @@ sonar.go.coverage.reportPaths=cache/coverage/*
# golangci-lint does not support wildcard # golangci-lint does not support wildcard
# https://github.com/SonarSource/slang/blob/85b05160bc1b31c6072a35f8818da4376b107afa/sonar-go-plugin/src/main/java/org/sonar/go/externalreport/GolangCILintReportSensor.java#L37 # https://github.com/SonarSource/slang/blob/85b05160bc1b31c6072a35f8818da4376b107afa/sonar-go-plugin/src/main/java/org/sonar/go/externalreport/GolangCILintReportSensor.java#L37
# https://github.com/SonarSource/slang/blob/85b05160bc1b31c6072a35f8818da4376b107afa/sonar-go-plugin/src/main/java/org/sonar/go/externalreport/AbstractReportSensor.java#L76-L90 # https://github.com/SonarSource/slang/blob/85b05160bc1b31c6072a35f8818da4376b107afa/sonar-go-plugin/src/main/java/org/sonar/go/externalreport/AbstractReportSensor.java#L76-L90
sonar.go.golangci-lint.reportPaths=cache/checkstyle/accounts_checkstyle.xml,cache/checkstyle/glauth_checkstyle.xml,cache/checkstyle/graph_checkstyle.xml,cache/checkstyle/graph-explorer_checkstyle.xml,cache/checkstyle/idp_checkstyle.xml,cache/checkstyle/ocis_checkstyle.xml,cache/checkstyle/ocis-pkg_checkstyle.xml,cache/checkstyle/ocs_checkstyle.xml,cache/checkstyle/proxy_checkstyle.xml,cache/checkstyle/settings_checkstyle.xml,cache/checkstyle/storage_checkstyle.xml,cache/checkstyle/store_checkstyle.xml,cache/checkstyle/thumbnails_checkstyle.xml,cache/checkstyle/web_checkstyle.xml,cache/checkstyle/webdav_checkstyle.xml sonar.go.golangci-lint.reportPaths=cache/checkstyle/accounts_checkstyle.xml,cache/checkstyle/audit_checkstyle.xml,cache/checkstyle/glauth_checkstyle.xml,cache/checkstyle/graph_checkstyle.xml,cache/checkstyle/graph-explorer_checkstyle.xml,cache/checkstyle/idm_checkstyle.xml,cache/checkstyle/idp_checkstyle.xml,cache/checkstyle/nats_checkstyle.xml,cache/checkstyle/notifications_checkstyle.xml,cache/checkstyle/ocis_checkstyle.xml,cache/checkstyle/ocis-pkg_checkstyle.xml,cache/checkstyle/ocs_checkstyle.xml,cache/checkstyle/proxy_checkstyle.xml,cache/checkstyle/settings_checkstyle.xml,cache/checkstyle/storage_checkstyle.xml,cache/checkstyle/store_checkstyle.xml,cache/checkstyle/thumbnails_checkstyle.xml,cache/checkstyle/web_checkstyle.xml,cache/checkstyle/webdav_checkstyle.xml
# Exclude files # Exclude files
sonar.exclusions=**/third_party,docs/**,changelog/**,*/pkg/assets/embed.go,idp/assets/identifier/**,**/package.json,**/rollup.config.js,CHANGELOG.md,**/pkg/proto/**/*.pb.*,deployments/**,tests/**,vendor-bin/**,README.md,**/mocks/ sonar.exclusions=**/third_party,docs/**,changelog/**,*/pkg/assets/embed.go,idp/assets/identifier/**,**/package.json,**/rollup.config.js,CHANGELOG.md,**/pkg/proto/**/*.pb.*,deployments/**,tests/**,vendor-bin/**,README.md,**/mocks/