Skip to content

Commit

Permalink
feat: start Compose on YASSG make start (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Dec 12, 2023
1 parent 1996516 commit 92be586
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/YASSG/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ BASE_URL ?= file://localhost${APP_ROOT}/${BUILD_DIR}
start: dev ## Start app in APP_ENV mode (defaults to "dev")
start/dev: dev ## Start app in "dev" mode
dev: clean
@make dev/assets dev/server -j2
@make dev/assets dev/server dev/compose -j3
dev/server: vendor index.php
YASSG_SKIP_BUNDLES=${YASSG_SKIP_BUNDLES} symfony server:start --no-tls --document-root=. --port=${APP_PORT}
dev/assets: node_modules
node_modules/.bin/encore dev-server
dev/compose:
docker compose up
index.php:
ln -s vendor/sigwin/yassg/web/index.php

Expand Down
9 changes: 8 additions & 1 deletion tests/functional/YASSG/CompatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected static function getExpectedHelpCommandsExecutionPath(?array $env = nul

$start = [
'rm -rf var/cache/* var/log/* public',
'make dev/assets dev/server -j2',
'make dev/assets dev/server dev/compose -j3',
];

return [
Expand Down Expand Up @@ -108,6 +108,13 @@ public function testDevServerWorks(): void
], []);
}

public function testDevComposeWorks(): void
{
$this->testMakefileCommandsWork('dev/compose', [
'docker compose up',
], []);
}

private static function generateDockerBackstopExecutionPath(string $command): string
{
return sprintf(
Expand Down

0 comments on commit 92be586

Please sign in to comment.