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 = {
"modules": [
# if you add a module here please also add it to the root level Makefile
"accounts",
"audit",
"glauth",
"graph-explorer",
"graph",
"idp",
"extensions/accounts",
"extensions/audit",
"extensions/glauth",
"extensions/graph-explorer",
"extensions/graph",
"extensions/idp",
"extensions/ocs",
"extensions/proxy",
"extensions/settings",
"extensions/storage",
"extensions/store",
"extensions/thumbnails",
"extensions/web",
"extensions/webdav",
"ocis-pkg",
"ocis",
"ocs",
"proxy",
"settings",
"storage",
"store",
"thumbnails",
"web",
"webdav",
],
"cs3ApiTests": {
"skip": False,
@@ -301,7 +301,7 @@ def testOcisModule(ctx, module):
"commands": [
"mkdir -p cache/checkstyle",
"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],
},
@@ -311,7 +311,7 @@ def testOcisModule(ctx, module):
"commands": [
"mkdir -p cache/coverage",
"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],
},

2
.gitignore vendored
View File

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

View File

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

View File

@@ -20,5 +20,5 @@ buf-generate: $(BUF) protoc-deps $(SHA1_LOCK_FILE)
$(SHA1_LOCK_FILE):
@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)

1
docs/.gitignore vendored
View File

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

View File

@@ -19,7 +19,7 @@ var targets = map[string]string{
func main() {
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 {
log.Fatal(err)
}

View File

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

View File

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

View File

@@ -33,7 +33,7 @@ sonar.go.coverage.reportPaths=cache/coverage/*
# 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/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
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/