Commit 4f928451 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Initial commit.

No related merge requests found
Pipeline #5431 passed with stages
in 57 seconds
Showing with 112 additions and 0 deletions
+112 -0
.gitignore 0 → 100644
/.idea
/vendor
/composer.lock
/.php_cs.*cache
stages:
- test
- deploy
.test: &test
stage: test
tags: [docker]
image: php:${CI_JOB_NAME}-cli-alpine
variables:
COMPOSER_ALLOW_SUPERUSER: "1"
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
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ComposerJsonPluginSettings">
<unboundedVersionInspectionSettings>
<excludedPackages />
</unboundedVersionInspectionSettings>
<customRepositories />
<composerUpdateOptions />
</component>
</project>
\ No newline at end of file
#!/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"
LICENSE 0 → 100644
Copyright (c) 2018-2019 Irstea
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
composer.json 0 → 100644
{
"name": "irstea/phpstan-config",
"description": "Configuration par défaut pour phpstan/phpstan.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Irstea - DSI - pôle IS",
"email": "dsi.poleis@irstea.fr"
}
],
"require": {
"php": ">=7.1",
"jangregor/phpstan-prophecy": "^0.3.0",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-beberlei-assert": "^0.11",
"phpstan/phpstan-doctrine": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-symfony": "^0.11"
},
"config": {
"sort-packages": true
},
"archive": {
"exclude": [".?*"]
}
}
phpstan.neon 0 → 100644
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/jangregor/phpstan-prophecy/src/extension.neon
- vendor/phpstan/phpstan-beberlei-assert/extension.neon
parameters:
level: 7
memory-limit: 500M
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