Skip to content
Snippets Groups Projects
Commit e9f1beea authored by jinnoflife's avatar jinnoflife
Browse files

fixed gitlab-ci and added badge to readme

parent 3d63eaca
No related branches found
No related tags found
No related merge requests found
......@@ -3,19 +3,19 @@
stage: lint
image: php:$PHP_VER-alpine
script:
- if find . -type f -name '*.php' -exec php -l {} \; | grep "Parsing error"; then exit 1; fi
- if find . -type f -name '*.php' -exec php -l {} \; | grep "Parsing error"; then exit 1; fi
cache:
key: $PHP_VER
.cs_fixer: &cs_fixer
stage: test
image: ekreative/php-cs-fixer:2
script:
- php-cs-fixer fix --dry-run --config=.php_cs --diff
- php-cs-fixer fix --dry-run --config=.php_cs --diff
#endregions
stages:
- lint
- test
- lint
- test
#region linting
71-lint:
......@@ -31,14 +31,10 @@ stages:
#region test
cs-fixer-71:
<<: *cs_fixer
dependencies:
- test-72-base
variables:
PHP_VER: "7.1"
cs-fixer-72:
<<: *cs_fixer
dependencies:
- test-72-base
variables:
PHP_VER: "7.2"
#endregion
\ No newline at end of file
## STATUS
PIPELINE STATUS: [![pipeline status](https://git.riconnect.de/riconet-public/shopware/plugins/rico-content-cta/badges/master/pipeline.svg)](https://git.riconnect.de/riconet-public/shopware/plugins/rico-content-cta/commits/master)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment