forked from yiisoft/yii2-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
28 lines (24 loc) · 892 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
image: docker:latest
services:
- docker:dind
variables:
DOCKERFILE_FLAVOUR: debian
PHP_BASE_IMAGE_VERSION: fpm
PHP_IMAGE_NAME: yiiframework/php
TEST_YII_VERSION: master
before_script:
- apk add --no-cache python py2-pip git
- pip install --no-cache-dir docker-compose==1.16.0
- git clone https://github.com/yiisoft/yii2 _host-volumes/yii2
- pushd _host-volumes/yii2 && git checkout ${TEST_YII_VERSION} && popd
- cp .env-dist .env
- docker info
build:
environment:
name: ${DOCKERFILE_FLAVOUR}/php-${PHP_BASE_IMAGE_VERSION}
script:
- docker-compose build
- docker-compose run --rm php php -v
- docker-compose run --rm php php /tests/requirements.php
- docker-compose run --rm -w /yii2 php composer install
- docker-compose run --rm -w /yii2 php php -d error_reporting="E_ALL ^ E_DEPRECATED" vendor/bin/phpunit tests/framework/ --exclude db