mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-26 12:56:13 +01:00
[TASK] Add lint stage in gitlab ci (#82)
This commit is contained in:
parent
11e27d01ae
commit
f812769c15
2 changed files with 57 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- code_quality
|
- code_quality
|
||||||
|
- lint
|
||||||
- test
|
- test
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
@ -16,6 +17,7 @@ default:
|
||||||
|
|
||||||
build-composer-dependencies:
|
build-composer-dependencies:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
COMPOSER_CACHE_DIR: '.composer'
|
COMPOSER_CACHE_DIR: '.composer'
|
||||||
script:
|
script:
|
||||||
|
@ -33,9 +35,62 @@ build-composer-dependencies:
|
||||||
|
|
||||||
phpcs:
|
phpcs:
|
||||||
stage: code_quality
|
stage: code_quality
|
||||||
|
needs:
|
||||||
|
- build-composer-dependencies
|
||||||
script:
|
script:
|
||||||
- composer ci:php:sniff
|
- composer ci:php:sniff
|
||||||
|
|
||||||
|
php-lint-php7.2:
|
||||||
|
image: php:7.2
|
||||||
|
stage: lint
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- composer ci:php:lint
|
||||||
|
|
||||||
|
php-lint-php7.3:
|
||||||
|
image: php:7.3
|
||||||
|
stage: lint
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- composer ci:php:lint
|
||||||
|
|
||||||
|
php-lint-php7.4:
|
||||||
|
image: php:7.4
|
||||||
|
stage: lint
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- composer ci:php:lint
|
||||||
|
|
||||||
|
ts-lint:
|
||||||
|
stage: lint
|
||||||
|
needs:
|
||||||
|
- build-composer-dependencies
|
||||||
|
script:
|
||||||
|
- composer ci:ts:lint
|
||||||
|
|
||||||
|
json-lint:
|
||||||
|
stage: lint
|
||||||
|
needs:
|
||||||
|
- build-composer-dependencies
|
||||||
|
script:
|
||||||
|
- composer ci:json:lint
|
||||||
|
|
||||||
|
yaml-lint:
|
||||||
|
stage: lint
|
||||||
|
needs:
|
||||||
|
- build-composer-dependencies
|
||||||
|
script:
|
||||||
|
- composer ci:yaml:lint
|
||||||
|
|
||||||
|
xliff-lint:
|
||||||
|
stage: lint
|
||||||
|
needs:
|
||||||
|
- build-composer-dependencies
|
||||||
|
script:
|
||||||
|
- wget https://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd
|
||||||
|
- xmllint --schema ./xliff-core-1.2-strict.xsd
|
||||||
|
--noout $(find Resources -name '*.xlf')
|
||||||
|
|
||||||
code_quality:
|
code_quality:
|
||||||
before_script: []
|
before_script: []
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
apt-get update -yqq
|
apt-get update -yqq
|
||||||
apt-get install git libzip-dev unzip -yqq
|
apt-get install git libzip-dev unzip libxml2-utils wget -yqq
|
||||||
|
|
||||||
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
|
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
|
||||||
chmod +x /usr/local/bin/composer
|
chmod +x /usr/local/bin/composer
|
||||||
|
|
Loading…
Reference in a new issue