mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
Compare commits
11 Commits
bootstrap-
...
bootstrap-
Author | SHA1 | Date | |
---|---|---|---|
695aa45b90 | |||
58b04783f2 | |||
88edb905a7 | |||
b884eee626 | |||
167158db72 | |||
3c6b21be3b | |||
e7772f0967 | |||
c6a87f1286 | |||
d57cfe09c8 | |||
38cba4948b | |||
b2ff470720 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
.composer/*
|
.composer/*
|
||||||
composer.phar
|
composer.phar
|
||||||
|
composer.lock
|
||||||
|
|
||||||
|
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
|
@@ -1,46 +1,37 @@
|
|||||||
# This file is a template, and might need editing before it works on your project.
|
---
|
||||||
# Select image from https://hub.docker.com/_/php/
|
image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4
|
||||||
image: php:7.4
|
|
||||||
|
|
||||||
# Select what we should cache between builds
|
# Select what we should cache between builds
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- vendor/
|
- tests/app/vendor/
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -yqq
|
# add extensions to postgres
|
||||||
- apt-get install -yqq git libicu-dev g++ postgresql-server-dev-10 libzip-dev libzip4 unzip libfreetype6-dev libonig-dev `# install oniguruma, required for mbstring` libpng-dev libjpeg62-turbo-dev
|
- PGPASSWORD=$POSTGRES_PASSWORD psql -U $POSTGRES_USER -h db -c "CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||||
# Install PHP extensions
|
|
||||||
- docker-php-ext-configure gd --with-freetype --with-jpeg
|
|
||||||
- docker-php-ext-install intl pdo_pgsql mbstring zip bcmath sockets exif
|
|
||||||
- mkdir /tmp/redis \
|
|
||||||
&& curl -L -o /tmp/redis/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
|
|
||||||
&& cd /tmp/redis \
|
|
||||||
&& tar xfz /tmp/redis/redis.tar.gz \
|
|
||||||
&& rm -r /tmp/redis/redis.tar.gz \
|
|
||||||
&& mkdir -p /usr/src/php/ext/redis \
|
|
||||||
&& mv /tmp/redis/phpredis-$PHPREDIS_VERSION/* /usr/src/php/ext/redis/. \
|
|
||||||
&& docker-php-ext-install redis
|
|
||||||
# Install & enable Xdebug for code coverage reports
|
|
||||||
# - pecl install xdebug
|
|
||||||
#- docker-php-ext-enable xdebug
|
|
||||||
# Install and run Composer
|
# Install and run Composer
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
- curl -sS https://getcomposer.org/installer | php
|
||||||
- php composer.phar install
|
- php composer.phar install
|
||||||
|
- php tests/app/bin/console doctrine:migrations:migrate -n
|
||||||
|
- php tests/app/bin/console doctrine:fixtures:load -n
|
||||||
|
|
||||||
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
|
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
|
||||||
# See http://docs.gitlab.com/ee/ci/services/README.html for examples.
|
# See http://docs.gitlab.com/ee/ci/services/README.html for examples.
|
||||||
services:
|
services:
|
||||||
- postgresql:12
|
- name: postgres:12
|
||||||
|
alias: db
|
||||||
|
- name: redis
|
||||||
|
alias: redis
|
||||||
|
|
||||||
# Set any variables we need
|
# Set any variables we need
|
||||||
variables:
|
variables:
|
||||||
# Configure postgres environment variables (https://hub.docker.com/r/_/postgres/)
|
# Configure postgres environment variables (https://hub.docker.com/r/_/postgres/)
|
||||||
POSTGRES_USER=postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD=postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
# fetch the chill-app using git submodules
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
# Run our tests
|
# Run our tests
|
||||||
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- bin/phpunit --colors=never
|
- bin/phpunit --colors=never
|
||||||
|
Submodule tests/app updated: 88bd6e9ea0...9bed30b0d4
Reference in New Issue
Block a user