Gitlab CI pipeline for PHP applications
100K+
Docker image with everything you'll need to build and test PHP applications on Gitlab Continous Integration
| Tag | Image | Layers |
|---|---|---|
7.1 | dockerphp/gitlab-ci-pipeline:7.1 | |
7.0 | dockerphp/gitlab-ci-pipeline:7.0 | |
5.6 | dockerphp/gitlab-ci-pipeline:5.6 |
Based on Official PHP images Alpine and all versions come with:
image: dockerphp/gitlab-ci-pipeline:7.1
cache:
paths:
- vendor/
variables:
COMPOSER_DISABLE_XDEBUG_WARN: "1"
COMPOSER_ALLOW_SUPERUSER: "1"
test:app:
script:
- composer install --prefer-dist --no-interaction --no-progress
- ./vendor/bin/phpunit --coverage-text --colors=never
- ./vendor/bin/php-cs-fixer fix --diff --dry-run -v
mariadb service and Makevariables:
COMPOSER_DISABLE_XDEBUG_WARN: "1"
COMPOSER_ALLOW_SUPERUSER: "1"
MYSQL_ROOT_PASSWORD: ci
MYSQL_USER: ci
MYSQL_PASSWORD: ci
MYSQL_DATABASE: ci
DB_HOST: mariadb
test:
stage: test
services:
- mariadb:10.3
image: dockerphp/gitlab-ci-pipeline:7.0
script:
- make test
cache:
paths:
- vendor/
variables:
COMPOSER_DISABLE_XDEBUG_WARN: "1"
COMPOSER_ALLOW_SUPERUSER: "1"
stages:
- test
test:7.1:
image: dockerphp/gitlab-ci-pipeline:7.1
script:
- ant -Dbasedir=`pwd` -buildfile build/ci_gitlab.xml
test:7.0:
image: dockerphp/gitlab-ci-pipeline:7.0
script:
- ant -Dbasedir=`pwd` -buildfile build/ci_gitlab.xml
This project is released under the MIT License, you agree to license your code under the MIT license
Content type
Image
Digest
Size
170.9 MB
Last updated
almost 9 years ago
docker pull dockerphp/gitlab-ci-pipeline:5.6-alpine