mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-05 15:04:38 +01:00
* added build argument for Yii 2.0 PHP base image version - streamlined build - dropped network config for CI - updated local test script * added default for PHP (7.2) image on GitLab CI * use PHP 7.1 as a default on GitLab CI, see https://github.com/yiisoft/yii2/issues/15512
20 lines
566 B
YAML
20 lines
566 B
YAML
version: '2'
|
|
services:
|
|
|
|
php:
|
|
build:
|
|
context: ..
|
|
args:
|
|
DOCKER_YII2_PHP_IMAGE: ${DOCKER_YII2_PHP_IMAGE}
|
|
working_dir: /project
|
|
volumes:
|
|
- ../tests/data/config-docker.php:/project/tests/data/config.php
|
|
# Enable for debugging, enabling tests might be slow for file access (data) on host-volume
|
|
#- ../tests:/project/tests
|
|
# - ../framework:/project/framework
|
|
# Tmpfs volume (experimental, asset tests may fail)
|
|
#tmpfs:
|
|
# - /project/tests/runtime
|
|
environment:
|
|
- TEST_RUNTIME_PATH=/tmp/runtime
|