|
1 | 1 | .DEFAULT_GOAL := help |
2 | 2 | SHELL=/bin/bash |
3 | 3 | APP_DIR=tests/Application |
4 | | -SYLIUS_VERSION=1.14.0 |
| 4 | +SYLIUS_VERSION=2.1.0 |
5 | 5 | SYMFONY=cd ${APP_DIR} && symfony |
6 | 6 | COMPOSER=symfony composer |
7 | 7 | CONSOLE=${SYMFONY} console |
@@ -74,6 +74,9 @@ setup_application: |
74 | 74 | (cd ${APP_DIR} && ${COMPOSER} config --no-plugins allow-plugins true) |
75 | 75 | (cd ${APP_DIR} && ${COMPOSER} config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]') |
76 | 76 | (cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress sylius/sylius="~${SYLIUS_VERSION}") # Make sure to install the required version of sylius because the sylius-standard has a soft constraint |
| 77 | + # Temporary fix for Sylius 2.1 |
| 78 | + (cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress api-platform/state) |
| 79 | + # End Temporary fix for Sylius 2.1 |
77 | 80 | $(MAKE) ${APP_DIR}/.php-version |
78 | 81 | $(MAKE) ${APP_DIR}/php.ini |
79 | 82 | (cd ${APP_DIR} && ${COMPOSER} install --no-interaction) |
@@ -138,13 +141,13 @@ test.container: ## Lint the symfony container |
138 | 141 | ${CONSOLE} lint:container |
139 | 142 |
|
140 | 143 | test.yaml: ## Lint the symfony Yaml files |
141 | | - ${CONSOLE} lint:yaml ../../src/Resources/config --parse-tags |
| 144 | + ${CONSOLE} lint:yaml ../../config --parse-tags |
142 | 145 |
|
143 | 146 | test.schema: ## Validate MySQL Schema |
144 | 147 | ${CONSOLE} doctrine:schema:validate |
145 | 148 |
|
146 | 149 | test.twig: ## Validate Twig templates |
147 | | - ${CONSOLE} lint:twig --no-debug templates/ ../../src/Resources/views/ |
| 150 | + ${CONSOLE} lint:twig --no-debug templates/ ../../templates/ |
148 | 151 |
|
149 | 152 | ### |
150 | 153 | ### SYLIUS |
|
0 commit comments