Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ config = {
'repo-slug': "libre-graph-api-cpp-qt-client",
'branch': 'main',
},
'php': {
'src': "out-php",
'repo-slug': "libre-graph-api-php",
'branch': 'main',
},
},
'openapi-generator-image': 'openapitools/openapi-generator-cli:v6.2.0@sha256:e6153ebc2f1a54985a50c53942e40285f1fbe64f1c701317da290bfff4abe303'
}
Expand All @@ -39,7 +44,7 @@ def main(ctx):

def stagePipelines(ctx):
linters = linting(ctx)
generators = generate(ctx, "go") + generate(ctx, "typescript-axios") + generate(ctx, "cpp-qt-client")
generators = generate(ctx, "go") + generate(ctx, "typescript-axios") + generate(ctx, "cpp-qt-client") + generate(ctx, "php")
dependsOn(linters, generators)
return linters + generators

Expand Down Expand Up @@ -260,6 +265,16 @@ def validate(lang):
]
},
],
"php": [
{
"name": "validate-php",
"image": "owncloudci/php:8.0",
"commands": [
"composer install",
"vendor/bin/parallel-lint %s" % config["languages"][lang]["src"],
]
},
],
"typescript-axios": []
}

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
composer.lock
vendor
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ That generates the output in out/cpp.
### Available client libraries
- [C++/Qt](https://github.com/owncloud/libre-graph-api-cpp-qt-client)
- [go](https://github.com/owncloud/libre-graph-api-go)
- [php](https://github.com/owncloud/libre-graph-api-php)
- [typescript-axios](https://github.com/owncloud/libre-graph-api-typescript-axios)

5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3"
}
}