From 17205135939320e950e01ae03cb29d7cb0772746 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 29 Aug 2023 17:29:23 +0545 Subject: [PATCH] Add libre-graph-api-php --- .drone.star | 17 ++++++++++++++++- .gitignore | 2 ++ README.md | 1 + composer.json | 5 +++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 composer.json diff --git a/.drone.star b/.drone.star index 16c8c81..f1559bc 100644 --- a/.drone.star +++ b/.drone.star @@ -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' } @@ -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 @@ -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": [] } diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..987e2a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +composer.lock +vendor diff --git a/README.md b/README.md index 88c015a..08a17d0 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..e377c1f --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.3" + } +}