Skip to content

Instantly share code, notes, and snippets.

@Mte90

Mte90/gitlab-ci.yml

Last active Aug 12, 2020
Embed
What would you like to do?
GitLab CI version for WPBP
image: jakzal/phpqa:alpine
cache:
paths:
- vendor/
stages:
- Code Quality
coding-standards:
stage: Code Quality
script:
- composer validate
- composer update --no-interaction --no-progress --no-suggest
- composer normalize --dry-run
- vendor/bin/phpcs -s --standard=CodeatCodingStandard .
static-code-analysis:
stage: Code Quality
script:
- composer update --no-interaction --no-progress --no-suggest
- vendor/bin/phpstan analyse
editorconfig:
stage: Code Quality
script:
- curl -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.1.0/ec-linux-amd64.tar.gz
- tar xzf ec-linux-amd64.tar.gz
- ./bin/ec-linux-amd64 --exclude 'vendor|\.git|bin|languages' .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.