Skip to content

Commit

Permalink
fix(ci): Add rector and move to vendor-bin
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 10, 2024
1 parent df80472 commit ba2ad6a
Show file tree
Hide file tree
Showing 19 changed files with 2,280 additions and 2,047 deletions.
7 changes: 6 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
directories:
- "/"
- "/vendor-bin/csfixer"
- "/vendor-bin/phpunit"
- "/vendor-bin/psalm"
- "/vendor-bin/rector"
schedule:
interval: weekly
day: saturday
Expand Down
46 changes: 1 addition & 45 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,10 @@
# just sane ignores
.*.sw[po]
*.bak
*.BAK
*~
*.orig
*.class
.cvsignore
Thumbs.db
*.py[co]
_darcs/*
CVS/*
.svn/*
RCS/*
*.backup*

# kdevelop
.kdev
*.kdev4
*.kate-swp

# Lokalize
*lokalize*

# eclipse
.project
.settings

# netbeans
nbproject

# phpStorm
.idea
*.iml

# geany
*.geany

# Cloud9IDE
.settings.xml
.c9revisions

# vim ex mode
.vimrc

# Mac OS
.DS_Store

# WebFinger
.well-known
/.buildpath

# WebPack
/node_modules

Expand All @@ -68,3 +23,4 @@ nbproject
/npm-debug.log
/build
/vendor
/vendor-bin/*/vendor
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

require_once './vendor/autoload.php';
require_once './vendor-bin/csfixer/vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ appstore: dev-setup
--exclude=/src \
--exclude=/tests \
--exclude=/vendor \
--exclude=/vendor-bin \
--exclude=/.eslintrc.js \
--exclude=/.l10nignore \
--exclude=/.php-cs-fixer.cache \
Expand All @@ -72,6 +73,7 @@ appstore: dev-setup
--exclude=/package-lock.json \
--exclude=/psalm.xml \
--exclude=/README.md \
--exclude=/rector.php \
--exclude=/stylelint.config.js \
--exclude=/webpack.js \
$(project_dir)/ $(sign_dir)/$(app_name)
Expand Down
28 changes: 17 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@
"OCA\\CallSummaryBot\\": "lib/"
}
},
"name": "nextcloud/call_summary_bot",
"description": "Call summary bot",
"license": "AGPL",
"require-dev": {
"nextcloud/coding-standard": "^1.3.1",
"nextcloud/ocp": "dev-stable28",
"phpunit/phpunit": "^9.6",
"psalm/phar": "^5.13"
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "8.0.2"
},
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/ocp": "dev-stable28"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -29,6 +33,8 @@
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
"psalm:clear": "psalm.phar --clear-cache && psalm.phar --clear-global-cache",
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test:unit": "vendor/bin/phpunit --color -c tests/phpunit.xml"
"rector:check": "rector --dry-run",
"rector:fix": "rector",
"test:unit": "phpunit --color -c tests/phpunit.xml"
}
}
Loading

0 comments on commit ba2ad6a

Please sign in to comment.