Compare commits

..

1 Commits

Author SHA1 Message Date
44702ab10e feat: mise à jour task phpstan avec baseline 2024-04-02 09:59:19 +02:00
2 changed files with 3 additions and 13 deletions

View File

@ -32,16 +32,6 @@ deploy-dev: ## Déploie le projet dans le cluster (nécessite la variable $HARBO
delete-cluster: ## Supprime le cluster kubernetes Kind
kind delete clusters tekton
docker-secret:
cp kustomization/base/tekton/secret/gitea/access_token.dist kustomization/base/tekton/secret/gitea/access_token
cp kustomization/base/tekton/secret/gitea/basicauth.dist kustomization/base/tekton/secret/gitea/basicauth
cp kustomization/base/tekton/secret/ssh/id_ed25519.dist kustomization/base/tekton/secret/ssh/id_ed25519
cp kustomization/base/tekton/secret/ssh/known_hosts.dist kustomization/base/tekton/secret/ssh/known_hosts
docker login reg.cadoles.com
docker --config kustomization/base/tekton/secret/dockerconfig login reg.cadoles.com
mv kustomization/base/tekton/secret/dockerconfig/config.json kustomization/base/tekton/secret/dockerconfig/.dockerconfigjson
.mktools:
rm -rf .mktools
curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL)

View File

@ -3,7 +3,7 @@ kind: Task
metadata:
name: phpstan
spec:
description: Phpstan on modified code
description: PHP-CS-Fixer on modified code
workspaces:
- name: source
params:
@ -11,10 +11,10 @@ spec:
- name: requestid
steps:
- name: analyse
image: reg.cadoles.com/cadoles/phpstan
image: reg.cadoles.com/vcarroy/phpstan
script: |
#!/bin/sh
echo "== RUN PHPSTAN ==========================================="
cd $(workspaces.source.path)
phpstan analyse -l 5 --configuration phpstan-pipeline.neon --error-format table --no-progress > temp_phpstan.txt 2>&1
cat temp_phpstan.txt
cat temp_phpstan.txt