Skip to content

Instantly share code, notes, and snippets.

@andreybolonin
Last active November 28, 2020 11:47
Show Gist options
  • Save andreybolonin/87e276bddd0bceba4ece9358becf7b15 to your computer and use it in GitHub Desktop.
Save andreybolonin/87e276bddd0bceba4ece9358becf7b15 to your computer and use it in GitHub Desktop.
.gitlab-ci.yml
image: ubuntu:focal
services:
- postgres:13
variables:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
POSTGRES_DB: symfony
before_script:
- apt-get update
- apt-get install software-properties-common -y
- apt-get install curl wget php php-cli php7.4 php7.4-common php7.4-pgsql php7.4-mysql php7.4-intl php7.4-gd php7.4-xml php7.4-opcache php7.4-mbstring php7.4-zip libfontconfig1 fontconfig libxrender-dev libfreetype6 libxrender1 xvfb -y -qq
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php --install-dir=/usr/local/bin --filename=composer
- php -r "unlink('composer-setup.php');"
- composer
- php -v
- php -m
- composer install
#- bin/console d:s:u --force
#- bin/console d:s:v
#- bin/console d:f:l --no-interaction
stages:
- test
test:
script:
- vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no src/ --rules=@Symfony
- vendor/bin/phpstan analyse src --level=1
# - vendor/bin/simple-phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment