Commit 480bf3b5 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Teste les configs avec plusieurs versions.

No related merge requests found
Pipeline #9555 failed with stages
Showing with 29 additions and 52 deletions
+29 -52
stages: include:
- test - project: pole-is/tools/ci-config
- deploy ref: master
file: /php-multiversions-ci.yml
.test: &test - project: pole-is/tools/ci-config
stage: test ref: master
tags: [docker] file: /packagist-ci.yml
image: php:${CI_JOB_NAME}-cli-alpine
test:7.2:
extends: .php-test
variables: variables:
COMPOSER_ALLOW_SUPERUSER: "1" PHP_VERSION: "7.2"
before_script:
- curl -sSL https://github.com/composer/composer/releases/download/1.8.4/composer.phar --output /usr/local/bin/composer
- chmod +x /usr/local/bin/composer
- apk update && apk add unzip git
- php -v
- composer -V
- composer global require hirak/prestissimo
script:
- composer install
cache:
key: composer-cache
paths:
- /root/.composer/cache
"7.1":
<<: *test
"7.2":
<<: *test
"7.3":
<<: *test
deploy:
stage: deploy
tags: [docker]
image: appropriate/curl
script: ./.packagist.sh
#!/usr/bin/env sh
curl -fsSL \
-H"Content-Type: application/json" \
-d'{"repository":{"url":"'$CI_PROJECT_URL'.git"}}' \
"https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_TOKEN"
...@@ -31,5 +31,13 @@ ...@@ -31,5 +31,13 @@
}, },
"archive": { "archive": {
"exclude": [".?*"] "exclude": [".?*"]
},
"scripts": {
"test": [
"vendor/bin/phpstan analyse -c loose.neon bin",
"vendor/bin/phpstan analyse -c strict.neon bin",
"vendor/bin/phpstan analyse -c symfony.neon -l 1 bin",
"vendor/bin/phpstan analyse -c phpunit.neon -l 1 bin"
]
} }
} }
includes: includes:
- ../../phpstan/phpstan-beberlei-assert/extension.neon - %rootDir%/../phpstan-beberlei-assert/extension.neon
parameters: parameters:
level: 1 level: 1
......
includes: includes:
- ../../phpstan/phpstan-phpunit/extension.neon - %rootDir%/../phpstan-phpunit/extension.neon
- ../../phpstan/phpstan-phpunit/rules.neon - %rootDir%/../phpstan-phpunit/rules.neon
- ../../jangregor/phpstan-prophecy/src/extension.neon - %rootDir%/../../jangregor/phpstan-prophecy/src/extension.neon
includes: includes:
- ../../phpstan/phpstan-doctrine/extension.neon - %rootDir%/../phpstan-doctrine/extension.neon
- ../../phpstan/phpstan-doctrine/rules.neon - %rootDir%/../phpstan-doctrine/rules.neon
- ../../phpstan/phpstan-symfony/extension.neon - %rootDir%/../phpstan-symfony/extension.neon
parameters: parameters:
excludes_analyse: excludes_analyse:
- %rootDir%/../../../var - %rootDir%/../../var
- %rootDir%/../../../app/cache - %rootDir%/../../app/cache
- %rootDir%/../../../app/logs - %rootDir%/../../app/logs
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment