-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 15b72f6
Showing
52 changed files
with
5,311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
moduleName=hhmodulesmanager | ||
buildDir="/home/herve/www/build/" | ||
cd $buildDir | ||
rm -rf $moduleName | ||
git clone [email protected]:nenes25/${moduleName}.git $moduleName | ||
cd $moduleName | ||
php7.4 `which composer2` install | ||
rm -rf .git/ | ||
rm -rf .github/ | ||
rm -rf .gitignore | ||
rm -rf config_fr.xml | ||
rm -rf .php_cs.cache | ||
rm -rf .php_cs.dist | ||
rm -rf tests/ | ||
rm -rf _dev | ||
cd ../ | ||
rm -rf $moduleName.zip | ||
zip $moduleName.zip -r ${moduleName}/ | ||
echo "Build zip make in ${buildDir}${moduleName}.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: PHP tests | ||
on: [ push, pull_request ] | ||
jobs: | ||
php-linter: | ||
name: PHP Syntax check 7.4|8.0|8.1 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PHP syntax checker 7.4 | ||
uses: prestashop/github-action-php-lint/7.4@master | ||
- name: PHP syntax checker 8.0 | ||
uses: prestashop/github-action-php-lint/8.0@master | ||
- name: PHP syntax checker 8.1 | ||
uses: prestashop/github-action-php-lint/8.1@master | ||
|
||
# Check the PHP code follow the coding standards | ||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Run PHP-CS-Fixer | ||
uses: prestashopcorp/github-action-php-cs-fixer@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
logs/*.log | ||
upgrades/*.yml | ||
tests/php/.php-cs-fixer.cache | ||
vendor/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Module de gestion des mises à jour des modules et configuration via la CLI | ||
Work in progress | ||
|
||
Compatible et testé avec php7.4 et prestashop 1.7.8.x | ||
Les autres versions seront à tester ultérieurement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file docs/licenses/LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @author Hervé HENNES <[email protected]> | ||
* @copyright since 2023 Hervé HENNES | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License ("AFL") v. 3.0 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "hhennes/modulesmanager", | ||
"description": "Manage modules from cli in Continuous deployment", | ||
"license": "AFL", | ||
"authors": [ | ||
{ | ||
"name": "Hervé Hennes", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"Hhennes\\ModulesManager\\": "src/" | ||
} | ||
}, | ||
"require": { | ||
"prestashop/php-dev-tools": "^4.3" | ||
}, | ||
"config": { | ||
"prepend-autoloader": false | ||
}, | ||
"scripts": { | ||
"header-stamp": [ | ||
"vendor/bin/header-stamp --extensions=php,js,css,tpl --exclude=.github,vendor,tests,translations --license=_dev/header-stamp/licence.txt" | ||
], | ||
"cs-fixer": [ | ||
"vendor/bin/php-cs-fixer fix --config tests/php/.php-cs-fixer.dist.php" | ||
] | ||
}, | ||
"type": "prestashop-module" | ||
} |
Oops, something went wrong.