Skip to content

Commit

Permalink
Add NMC standard automation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Aug 22, 2023
1 parent c092d38 commit fd7b317
Show file tree
Hide file tree
Showing 6 changed files with 1,691 additions and 2,919 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/nmc-app-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]>
#
# Builds a stable release package based on a release assembly
# customisation-<version>-<increment>
#
# As soon as a package is deployed to production, the tag and the branch
# MUST STAY FOR 2 years and not deleted.
#
# Release packages, tags and customisation branches not delivered to production should
# be deleted asap a newer release is available.
#

name: MCLOUD app release

on:
workflow_dispatch:
inputs:
branch:
type: choice
description: Branch to build a package from HEAD
options:
- main
- stable25
- stable26
- stable27
- stable28
increment:
description: 'Release increment'
required: true
type: number

jobs:
check-app:
uses: nextmcloud/.github/.github/workflows/nmc-app-precond.yml@master
with:
versionbranch: ${{ inputs.branch }}
increment: ${{ inputs.increment }}
secrets: inherit
build-app:
uses: nextmcloud/.github/.github/workflows/nmc-app-build.yml@master
needs: check-app
with:
appname: ${{ needs.check-app.outputs.appname }}
branch: ${{ inputs.branch }}
tag: ${{ needs.check-app.outputs.tag }}
prerelease: ${{ inputs.branch == 'main' && true || false }}
secrets: inherit

19 changes: 19 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

$config = new Config();
$config
->getFinder()
->notPath('build')
->notPath('node_modules')
->notPath('l10n')
->notPath('src')
->notPath('vendor')
->notPath('lib/Vendor')
->in(__DIR__);
return $config;
8 changes: 0 additions & 8 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
Although the code for this Magentacloud custom web theme for Nextcloud is free and available under the GPL 3
license below, Deutsche Telekom (including T-Systems) fully reserves all rights to the Telekom brand. To prevent users from getting confused about
the source of a digital product or experience, there are stringent restrictions on using the Telekom brand and design,
even when built into code that we provide. For any customization other than explicitly for Telekom or T-Systems, you must
replace the Deutsche Telekom and T-Systems brand elements contained in the provided sources.



GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Expand Down
9 changes: 9 additions & 0 deletions COPYING.DTAG
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Although the code for this MagentaCLOUD web application for Nextcloud is free and available under the AGPL3
license, Deutsche Telekom (including T-Systems) fully reserves all rights to the Telekom brand. To prevent users
from getting confused about the source of a digital product or experience, there are stringent restrictions on using
the Telekom brand and design, even when built into code that we provide. For any customization other than explicitly
for Telekom or T-Systems, you must replace the Deutsche Telekom and T-Systems brand elements contained in the provided
default theme.

Note that especially in this theme, the graphical elements, fonts and even the color scheme are intended to implement the
Telekom brand design, so most files have relationship to brand and need careful check before reuse in own code.
42 changes: 35 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
{
"name": "nextcloud/nmc_spica",
"name": "nextmcloud/nmc_spica",
"description": "MagentaCLOUD spica integration app",
"type": "project",
"license": "AGPL3",
"authors": [
{
"name": "Julius Härtl",
"email": "[email protected]"
}
],
"require": {
"php": "^8.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"nextcloud/coding-standard": "^1.0.0",
"psalm/phar": "^5.4",
"phpunit/phpunit": "^9.5",
"ext-mbstring": "*",
"nextcloud/ocp": "dev-master"
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "8.0"
}
},
"scripts": {
"cs:fix": "php-cs-fixer fix",
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"test:unit": "phpunit -c tests/phpunit.xml"
},
"require-dev": {
"nextcloud/coding-standard": "^0.5.0",
"symfony/event-dispatcher": "^4",
"phpunit/phpunit": "^9.5"
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP"
}
}
}
Loading

0 comments on commit fd7b317

Please sign in to comment.