Skip to content

Commit 74a4821

Browse files
committed
Fix Scrutinizer pipeline
1 parent c456409 commit 74a4821

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ build:
2424
karma:
2525
project_setup:
2626
after:
27-
- npm run init-project
28-
- npm run jwt-generation-test
27+
- npm run init-project-test
2928
root_path: './'
3029
tests:
3130
override:

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
"app_version_prefix": "v1.0"
1515
},
1616
"scripts": {
17-
"init-project": "[ -f .env ] && echo '.env file already exists' || cp .env.dist .env && cp phpunit.xml.dist phpunit.xml && composer install && npm install && npm run db-init && npm run dump-js-config && cd assets/js/form-devxpress-angular/ && npm install && cd ../../../ && npm run dev && php bin/console assets:install --symlink && npm run jwt-init && echo 'change right on config/jwt/* to 444 for your web user' && composer dump-env prod",
18-
"init-project:w": "cp .env.dist .env && cp phpunit.xml.dist phpunit.xml && composer install && npm install && npm run db-init:w && npm run dump-js-config:w && cd assets/js/form-devxpress-angular/ && npm install && cd ../../../ && npm run dev:w && cd vendor/bin/.phpunit/phpunit* && composer install && cd ../../../../ && php bin/console assets:install --symlink && npm run jwt-init:w && echo 'change right on config/jwt/* to 444 for your web user' && composer dump-env prod",
17+
"init-project": "[ -f .env ] && echo '.env file already exists' || cp .env.dist .env && cp phpunit.xml.dist phpunit.xml && composer install && npm install && npm run db-init && npm run dump-js-config && cd assets/js/form-devxpress-angular/ && npm install && cd ../../../ && npm run dev && php bin/console assets:install --symlink",
18+
"init-project:w": "cp .env.dist .env && cp phpunit.xml.dist phpunit.xml && composer install && npm install && npm run db-init:w && npm run dump-js-config:w && cd assets/js/form-devxpress-angular/ && npm install && cd ../../../ && npm run dev:w && cd vendor/bin/.phpunit/phpunit* && composer install && cd ../../../../ && php bin/console assets:install --symlink ",
19+
"init-project-test": "npm run init-project && npm run jwt-generation-test",
20+
"init-project-test:w": "npm run init-project && npm run jwt-generation-test:w",
21+
"init-project-dev": "npm run init-project && npm run jwt-init && echo 'change right on config/jwt/* to 444 for your web user'",
22+
"init-project-dev:w": "npm run init-project && npm run jwt-init",
23+
"init-project-prod": "npm run init-project && npm run jwt-init && echo 'change right on config/jwt/* to 444 for your web user' && composer dump-env prod",
24+
"init-project-prod:w": "npm run init-project && npm run jwt-init:w && composer dump-env prod",
1925
"db-init": "$npm_package_config_php bin/console doctrine:database:create && $npm_package_config_php bin/console doctrine:schema:create && $npm_package_config_php bin/console doctrine:migrations:migrate -n && $npm_package_config_php bin/console doctrine:fixtures:load -n",
2026
"db-init:w": "%npm_package_config_php% bin/console doctrine:database:create && %npm_package_config_php% bin/console doctrine:schema:create && %npm_package_config_php% bin/console doctrine:migrations:migrate -n && %npm_package_config_php% bin/console doctrine:fixtures:load -n",
2127
"jwt-init": "echo 'Use the same passphrase that is your .env file' && mkdir -p config/jwt && npm run jwt-generation && npm run jwt-generation-test",

0 commit comments

Comments
 (0)