mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-13 14:52:38 +00:00
Move loading fixtures to the bootstrap file
This commit is contained in:
parent
4a4b584a46
commit
99ad390144
6
.github/workflows/continuous-integration.yml
vendored
6
.github/workflows/continuous-integration.yml
vendored
|
@ -76,9 +76,6 @@ jobs:
|
||||||
- name: "Prepare database configuration"
|
- name: "Prepare database configuration"
|
||||||
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
|
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
|
||||||
|
|
||||||
- name: "Prepare fixtures"
|
|
||||||
run: "make fixtures"
|
|
||||||
|
|
||||||
- name: "Run PHPUnit"
|
- name: "Run PHPUnit"
|
||||||
run: "php bin/phpunit -v"
|
run: "php bin/phpunit -v"
|
||||||
|
|
||||||
|
@ -147,8 +144,5 @@ jobs:
|
||||||
- name: "Prepare database configuration"
|
- name: "Prepare database configuration"
|
||||||
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
|
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
|
||||||
|
|
||||||
- name: "Prepare fixtures"
|
|
||||||
run: "make fixtures"
|
|
||||||
|
|
||||||
- name: "Run PHPUnit"
|
- name: "Run PHPUnit"
|
||||||
run: "php bin/phpunit -v"
|
run: "php bin/phpunit -v"
|
||||||
|
|
|
@ -31,10 +31,7 @@ build: ## Run webpack
|
||||||
@yarn install
|
@yarn install
|
||||||
@yarn build:$(ENV)
|
@yarn build:$(ENV)
|
||||||
|
|
||||||
fixtures: ## Load fixtures into database
|
test: ## Launch wallabag testsuite
|
||||||
php bin/console doctrine:fixtures:load --no-interaction --env=test
|
|
||||||
|
|
||||||
test: fixtures ## Launch wallabag testsuite
|
|
||||||
XDEBUG_MODE=off php -dmemory_limit=-1 bin/phpunit -v
|
XDEBUG_MODE=off php -dmemory_limit=-1 bin/phpunit -v
|
||||||
|
|
||||||
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
|
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
|
||||||
|
@ -46,6 +43,6 @@ endif
|
||||||
deploy: ## Deploy wallabag
|
deploy: ## Deploy wallabag
|
||||||
@bundle exec cap staging deploy
|
@bundle exec cap staging deploy
|
||||||
|
|
||||||
.PHONY: help install fixtures update build test release deploy run dev
|
.PHONY: help install update build test release deploy run dev
|
||||||
|
|
||||||
.DEFAULT_GOAL := install
|
.DEFAULT_GOAL := install
|
||||||
|
|
|
@ -30,3 +30,11 @@ require __DIR__ . '/../vendor/autoload.php';
|
||||||
'--env=test',
|
'--env=test',
|
||||||
'-vv',
|
'-vv',
|
||||||
]))->mustRun();
|
]))->mustRun();
|
||||||
|
|
||||||
|
(new Process([
|
||||||
|
'php',
|
||||||
|
__DIR__ . '/../bin/console',
|
||||||
|
'doctrine:fixtures:load',
|
||||||
|
'--no-interaction',
|
||||||
|
'--env=test',
|
||||||
|
]))->mustRun();
|
||||||
|
|
Loading…
Reference in a new issue