Skip to content

Commit 960d202

Browse files
authored
Fix: local tests (#938)
1 parent 92ba2d3 commit 960d202

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

tests/bin/docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ services:
1212

1313
php:
1414
#user: '1000:1000' # set to your uid:gid
15-
#image: pimcore/pimcore:PHP8.1-fpm-debug
16-
image: pimcore/pimcore:PHP8.1-fpm
15+
#image: pimcore/pimcore:php8.3-debug-latest
16+
image: pimcore/pimcore:php8.3-latest
1717
environment:
1818
PHP_IDE_CONFIG: "serverName=localhost"
1919
COMPOSER_HOME: /var/www/html
2020
PIMCORE_PROJECT_ROOT: /var/www/html
2121
APP_ENV: test
2222
PIMCORE_TEST: 1
2323
PIMCORE_TEST_DB_DSN: "mysql://pimcore:pimcore@db:3306/pimcore_test"
24+
PIMCORE_INSTANCE_IDENTIFIER: '<your_identifier>'
25+
PIMCORE_ENCRYPTION_SECRET: '<your_secret>'
26+
PIMCORE_PRODUCT_KEY: '<your_key>'
2427
depends_on:
2528
- db
2629
volumes:

tests/bin/init-tests.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

3-
docker-compose down -v --remove-orphans
4-
docker-compose up -d
3+
docker compose down -v --remove-orphans
4+
docker compose up -d
55

6-
docker-compose exec php .github/ci/scripts/setup-pimcore-environment.sh
6+
docker compose exec php .github/ci/scripts/setup-pimcore-environment.sh
7+
docker compose exec php git config --global --add safe.directory /var/www/html
78

8-
docker-compose exec php composer update
9+
docker compose exec php composer update -W
910

1011
printf "\n\n\n================== \n"
11-
printf "Run 'docker-compose exec php vendor/bin/codecept run -vv' to re-run the tests.\n"
12-
printf "Run 'docker-compose down -v --remove-orphans' to shutdown container and cleanup.\n\n"
12+
printf "Run 'docker compose exec php vendor/bin/codecept run -vv' to re-run the tests.\n"
13+
printf "Run 'docker compose down -v --remove-orphans' to shutdown container and cleanup.\n\n"

0 commit comments

Comments
 (0)