diff --git a/docker-compose.yml b/docker-compose.yml index 799cdfb8f..770b243a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: . dockerfile: ./utilities/testrunners/php72/Dockerfile volumes: - - .:/app + - smarty-code:/app working_dir: /app php72: extends: @@ -37,3 +37,35 @@ services: service: base build: dockerfile: ./utilities/testrunners/php82/Dockerfile + +volumes: + smarty-code: + +x-mutagen: + sync: + defaults: + symlink: + mode: "posix-raw" + ignore: + vcs: true + paths: + - ".docker" + - ".env.docker" + - ".bundles" + - "docker-compose.yml" + - ".idea" + - ".DS_Store" + mode: "two-way-resolved" + configurationBeta: + permissions: + defaultOwner: "id:${APP_USER_ID}" + defaultGroup: "id:${APP_GROUP_ID}" + defaultFileMode: 0666 + defaultDirectoryMode: 0755 + permissions: + defaultOwner: "id:${APP_USER_ID}" + defaultGroup: "id:${APP_GROUP_ID}" + smarty-code: + alpha: "." + beta: "volume://smarty-code" + diff --git a/run-tests-for-all-php-versions.sh b/run-tests-for-all-php-versions.sh index 1f1b94c28..b2a4133a0 100755 --- a/run-tests-for-all-php-versions.sh +++ b/run-tests-for-all-php-versions.sh @@ -5,9 +5,11 @@ # - ./run-tests-for-all-php-versions.sh --group 20221124 # - ./run-tests-for-all-php-versions.sh --exclude-group slow -docker-compose run php72 ./run-tests.sh $@ && \ -docker-compose run php73 ./run-tests.sh $@ && \ -docker-compose run php74 ./run-tests.sh $@ && \ -docker-compose run php80 ./run-tests.sh $@ && \ -docker-compose run php81 ./run-tests.sh $@ && \ -docker-compose run php82 ./run-tests.sh $@ +COMPOSE_CMD="mutagen-compose" + +$COMPOSE_CMD run --rm php72 ./run-tests.sh $@ && \ +$COMPOSE_CMD run --rm php74 ./run-tests.sh $@ && \ +$COMPOSE_CMD run --rm php74 ./run-tests.sh $@ && \ +$COMPOSE_CMD run --rm php80 ./run-tests.sh $@ && \ +$COMPOSE_CMD run --rm php81 ./run-tests.sh $@ && \ +$COMPOSE_CMD run --rm php82 ./run-tests.sh $@