]> git.mxchange.org Git - friendica.git/commitdiff
Add license check
authorPhilipp <admin@philipp.info>
Thu, 6 Jan 2022 20:54:40 +0000 (21:54 +0100)
committerPhilipp <admin@philipp.info>
Thu, 6 Jan 2022 21:28:00 +0000 (22:28 +0100)
.woodpecker/.license_check.yml [new file with mode: 0644]
mods/license/license_php.template [new file with mode: 0644]
tests/src/Module/Special/OptionsTest.php

diff --git a/.woodpecker/.license_check.yml b/.woodpecker/.license_check.yml
new file mode 100644 (file)
index 0000000..a22c606
--- /dev/null
@@ -0,0 +1,6 @@
+pipeline:
+  check:
+    image: friendicaci/php-cs
+    commands:
+      - export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)"
+      - /check-license.sh
diff --git a/mods/license/license_php.template b/mods/license/license_php.template
new file mode 100644 (file)
index 0000000..1e1f8f3
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+/**
+ * @copyright Copyright (C) 2010-%%YEAR%%, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
index 460435ae24d2a3a9995f390abae03effb419bd31..c61949aa13fbfbb3941acbeeb39895050a709775 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-222, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Test\src\Module\Special;