minor #10971 Use Symfony CLI command to check security (pamil)

This PR was merged into the 1.7-dev branch.

Discussion
----------

Related to #10928, replaces #10967.

Commits
-------

5cc4690faa Use Symfony CLI command to check security
This commit is contained in:
Mateusz Zalewski 2019-12-19 09:55:35 +01:00 committed by GitHub
commit ae2490d605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 44 deletions

View file

@ -124,7 +124,6 @@
"phpstan/phpstan-webmozart-assert": "0.12.0",
"phpunit/phpunit": "^7.0",
"psr/event-dispatcher": "^1.0",
"sensiolabs/security-checker": "^5.0",
"sspooky13/yaml-standards": "^5.0",
"stripe/stripe-php": "^4.1",
"sylius-labs/coding-standard": "^3.0",
@ -245,8 +244,7 @@
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"security-checker security:check": "script"
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"

View file

@ -8,3 +8,11 @@ run_command "echo \"extension = memcached.so\" >> ~/.phpenv/versions/$(phpenv ve
print_header "Updating Composer" "Sylius"
run_command "composer self-update --preview"
# Download and configure Symfony webserver
print_header "Downloading Symfony CLI" "Sylius"
if [ ! -f $SYLIUS_CACHE_DIR/symfony ]; then
run_command "wget https://get.symfony.com/cli/installer -O - | bash"
run_command "mv ~/.symfony/bin/symfony $SYLIUS_CACHE_DIR"
fi
run_command "$SYLIUS_CACHE_DIR/symfony version"

View file

@ -7,12 +7,6 @@ prepare_for_behat_with_js() {
run_command "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 2880x1800x16"
run_command "export DISPLAY=:99"
# Download and configure Symfony webserver
if [ ! -f $SYLIUS_CACHE_DIR/symfony ]; then
run_command "wget https://get.symfony.com/cli/installer -O - | bash"
run_command "mv ~/.symfony/bin/symfony $SYLIUS_CACHE_DIR"
fi
# Download and configure ChromeDriver
if [ ! -f $SYLIUS_CACHE_DIR/chromedriver ] || [ "$($SYLIUS_CACHE_DIR/chromedriver --version | grep -c 2.34)" = "0" ]; then
run_command "curl http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip > chromedriver.zip"

View file

@ -2,5 +2,5 @@
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../../bash/common.lib.sh"
print_header "Validating (Symfony security checker)" "Sylius"
run_command "vendor/bin/security-checker security:check"
print_header "Validating (Symfony CLI security checker)" "Sylius"
run_command "$SYLIUS_CACHE_DIR/symfony security:check"

View file

@ -1,7 +1,4 @@
{
"akeneo/phpspec-skip-example-extension": {
"version": "v4.0.0"
},
"amphp/amp": {
"version": "v2.1.2"
},
@ -41,9 +38,6 @@
"coduo/php-to-string": {
"version": "2.0.1"
},
"composer/ca-bundle": {
"version": "1.1.2"
},
"composer/semver": {
"version": "1.4.2"
},
@ -308,27 +302,12 @@
"netresearch/jsonmapper": {
"version": "v1.4.0"
},
"nette/bootstrap": {
"version": "v3.0.1"
},
"nette/di": {
"version": "v3.0.1"
},
"nette/finder": {
"version": "v2.4.2"
},
"nette/neon": {
"version": "v3.0.0"
},
"nette/php-generator": {
"version": "v3.3.1"
},
"nette/robot-loader": {
"version": "v3.0.4"
},
"nette/schema": {
"version": "v1.0.1"
},
"nette/utils": {
"version": "v2.5.2"
},
@ -347,9 +326,6 @@
"pagerfanta/pagerfanta": {
"version": "v2.0.1"
},
"pamil/phpspec-skip-example-extension": {
"version": "v4.0.0"
},
"pamil/prophecy-common": {
"version": "v0.1.0"
},
@ -521,15 +497,6 @@
"sebastian/version": {
"version": "2.0.1"
},
"sensiolabs/security-checker": {
"version": "4.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.0",
"ref": "421933bf8f0e75546ac8e00cb3eb12904fa2ac1a"
}
},
"slevomat/coding-standard": {
"version": "4.6.3"
},