fix composer
parent
3029488d
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
Showing   
+77 -35
| ... | @@ -85,7 +85,8 @@ | ... | @@ -85,7 +85,8 @@ | 
| "phpunit/phpunit": "^7.0" | "phpunit/phpunit": "^7.0" | ||
| }, | }, | ||
| "config": { | "config": { | ||
| "sort-packages": true, | "sort-packages": true, | ||
| "preferred-install": "dist", | |||
| "platform": { | "platform": { | ||
| "php": "7.1.30" | "php": "7.1.30" | ||
| } | } | ||
| ... | @@ -95,39 +96,80 @@ | ... | @@ -95,39 +96,80 @@ | 
| "dev-master": "2.x-dev" | "dev-master": "2.x-dev" | ||
| } | } | ||
| }, | }, | ||
| "archive": { | "archive": { | ||
| "exclude": [ | "exclude": [ | ||
| "vendor", | "/*", | ||
| "phpunit.xml.dist", | "!/src", | ||
| ".git*", | "!/doc", | ||
| ".idea" | "!/composer.json", | ||
| ] | "!/package.json", | ||
| }, | "!/COPYING*", | ||
| "scripts": { | "!/README.md", | ||
| "post-install-cmd": "@clobber-phpunit", | ".git*", | ||
| "post-update-cmd": "@clobber-phpunit", | ".idea" | ||
| "clobber-phpunit": "[ -d vendor/phpunit/phpunit ] && vendor/bin/pcov . clobber", | ] | ||
| }, | |||
| "scripts": { | |||
| "fix-cs": "vendor/bin/php-cs-fixer fix --verbose", | |||
| "phploc": "vendor/bin/phploc src tests --exclude tests/Fixtures/var", | |||
| "make-icon-lists":[ | |||
| "npm install", | |||
| "perl -ne '/\\.@\\{fa-css-prefix\\}\\-([-\\w]+):before/ and print \"$1\\n\"' node_modules/font-awesome/scss/_icons.scss | sort -u > src/Resources/icons/fa.txt", | |||
| "perl -ne '/\\.glyphicon\\-([-\\w]+)/ and print \"$1\\n\"' src/Resources/assets/sass/main.scss | sort -u > src/Resources/icons/glyphicon.txt" | |||
| ], | |||
| "update:lowest": [ | |||
| "rm -rf vendor composer.lock #", | |||
| "@composer update --no-suggest --prefer-stable --prefer-lowest" | |||
| ], | |||
| "update:latest": [ | |||
| "rm -rf vendor composer.lock #", | |||
| "@composer clear-cache #", | |||
| "@composer update --no-suggest" | |||
| ], | |||
| "test:lowest": ["@update:lowest", "@test"], | |||
| "test:latest": ["@update:latest", "@test"], | |||
| "test": [ | |||
| "@test:lint", | |||
| "@test:php-cs-fixer", | |||
| "@test:phpcpd", | |||
| "@test:phpmd", | |||
| "@test:phpstan", | |||
| "@test:composer-require-checker", | |||
| "@test:phpunit" | |||
| ], | |||
| "test:lint": [ | |||
| "vendor/bin/parallel-lint -j $(nproc) --exclude tests/Fixtures/var src tests ", | |||
| "vendor/bin/yaml-lint src" | |||
| ], | |||
| "test:php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose", | |||
| "test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests --exclude=Fixtures/var", | |||
| "test:composer-require-checker": "vendor/bin/composer-require-checker", | |||
| "test:phpmd": "vendor/bin/phpmd src,tests/Form/,tests/Utils,tests/Listener text ./phpmd-ruleset.xml --suffixes=php", | |||
| "test:phpstan": "vendor/bin/phpstan analyse --no-progress", | |||
| "fix-cs": "vendor/bin/php-cs-fixer fix --verbose", | "test:clear": [ | ||
| "phploc": "vendor/bin/phploc src tests --exclude tests/Fixtures/var", | "if [ -z \"$CI\" ]; then cd tests/Fixtures; rm -rf package-lock.json var node_modules public/assets reports/*; fi #" | ||
| "test": [ | ], | ||
| "@test:lint", | "test:install-assets": [ | ||
| "@test:php-cs-fixer", | "@test:clear", | ||
| "@test:phpcpd", | "cd tests/Fixtures && npm install && npm run dev #" | ||
| "@test:phpmd", | ], | ||
| "@test:phpstan", | "test:phpunit": [ | ||
| "@test:composer-require-checker", | "$PANTHER_CHROME_BINARY --version #", | ||
| "@test:phpunit" | "$PANTHER_CHROME_DRIVER_BINARY --version #", | ||
| ], | "vendor/bin/phpunit --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml" | ||
| "test:lint": [ | ], | ||
| "vendor/bin/parallel-lint -j $(nproc) --exclude tests/Fixtures/var src tests ", | "test:serve": [ | ||
| "vendor/bin/yaml-lint src" | "@test:install-assets", | ||
| ], | "@php tests/console server:run -v --docroot=tests/Fixtures/public" | ||
| "test:php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose", | ], | ||
| "test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests --exclude=Fixtures/var", | |||
| "test:composer-require-checker": "vendor/bin/composer-require-checker", | "docker:serve": [ | ||
| "test:phpmd": "vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml --suffixes=php", | "@test:install-assets", | ||
| "test:phpstan": "vendor/bin/phpstan analyse --no-progress", | "set -x; IMG=`docker build --build-arg \"PHP_VERSION=${PHP_VERSION:-7.1}\" --pull -q .` && docker run --rm -p 8080:8080 -v ${PWD}:/var/www/theme-bundle -u `id -u`:`id -g` $IMG" | ||
| "test:phpunit": "vendor/bin/phpunit" | ], | ||
| } | "docker:test": [ | ||
| "set -x; IMG=`docker build --build-arg \"PHP_VERSION=${PHP_VERSION:-7.1}\" --pull -q .` && docker run --rm -v ${PWD}:/var/www/theme-bundle -u `id -u`:`id -g` $IMG composer test" | |||
| ] | |||
| } | |||
| } | } | 
Please register or sign in to comment