Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
php-compat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
php-compat
Commits
8c5175dc
Commit
8c5175dc
authored
Mar 8, 2019
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Correction des scripts de lancement des analyses avec PHAN et PHPCS.
parent
82cd36b3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/unicaen-php-compat-run-phan
+1
-3
1 addition, 3 deletions
bin/unicaen-php-compat-run-phan
bin/unicaen-php-compat-run-phpcs
+29
-10
29 additions, 10 deletions
bin/unicaen-php-compat-run-phpcs
with
30 additions
and
13 deletions
bin/unicaen-php-compat-run-phan
+
1
−
3
View file @
8c5175dc
...
...
@@ -12,12 +12,10 @@ containername=${imagename}-container
unicaenlogfile
=
"/tmp/unicaen-php-compat-phan-unicaen-
${
v
}
.log"
vendorslogfile
=
"/tmp/unicaen-php-compat-phan-vendors-
${
v
}
.log"
DIR
=
$(
cd
`
dirname
$0
`
&&
pwd
)
echo
"==================================================================================="
echo
" Construction de l'image
${
imagename
}
"
echo
"==================================================================================="
docker-compose
-f
vendor/unicaen/php-compat/docker-compose.yml build
${
imagename
}
docker-compose
-f
vendor/unicaen/php-compat/docker-compose.yml
up
-d
--
build
${
imagename
}
[[
$?
!=
0
]]
&&
echo
"Erreur bloquante, ciao."
&&
exit
1
...
...
This diff is collapsed.
Click to expand it.
bin/unicaen-php-compat-run-phpcs
+
29
−
10
View file @
8c5175dc
...
...
@@ -6,14 +6,18 @@ DIR=$(cd `dirname $0` && pwd)
v
=
$1
# conversion de la version spécifiée au format PHP_VERSION_ID, ex: "7.2" devien "70200"
a
=(
${
v
//./
}
)
PHP_VERSION_ID
=
$((
a[0]
*
10000
+
a[1]
*
100
+
a[2]
))
vendors
=
"vendor/doctrine vendor/zendframework vendor/zf-commons"
imagename
=
"unicaen-php-compat-
${
v
}
"
containername
=
${
imagename
}
-container
unicaenlogfile
=
"/tmp/unicaen-php-compat-phpcs-unicaen-
${
v
}
.log"
vendorslogfile
=
"/tmp/unicaen-php-compat-phpcs-vendors-
${
v
}
.log"
DIR
=
$(
cd
`
dirname
$0
`
&&
pwd
)
echo
"==================================================================================="
echo
" Construction de l'image
${
imagename
}
"
echo
"==================================================================================="
...
...
@@ -25,7 +29,7 @@ echo
echo
"==================================================================================="
echo
" Composer update dans le container
${
containername
}
"
echo
"==================================================================================="
docker
exec
${
containername
}
composer update
--no-suggest
--no-scripts
docker
exec
${
containername
}
composer update
--no-suggest
[[
$?
!=
0
]]
&&
echo
"Erreur bloquante, ciao."
&&
exit
1
...
...
@@ -33,14 +37,29 @@ echo
echo
"==================================================================================="
echo
" Analyse PHPCS des modules unicaen/* installés"
echo
"==================================================================================="
docker
exec
${
containername
}
vendor/unicaen/php-compat/bin/phpcs.sh
${
v
}
>
${
unicaenlogfile
}
docker
exec
\
${
containername
}
\
vendor/bin/phpcs
\
-n
\
--standard
=
PHPCompatibility
\
--runtime-set
php_version
${
PHP_VERSION_ID
}
\
vendor/unicaen
\
>
${
unicaenlogfile
}
echo
"See '
${
unicaenlogfile
}
'."
#echo
#echo "==================================================================================="
#echo " Analyse PHPCS des principaux vendors installés"
#echo "==================================================================================="
#docker exec ${containername} vendor/unicaen/php-compat/bin/phpcs.sh ${v} > ${unicaenlogfile}
#echo "See '${unicaenlogfile}'."
echo
echo
"==================================================================================="
echo
" Analyse PHPCS des principaux vendors installés"
echo
" (
${
vendors
}
)"
echo
"==================================================================================="
docker
exec
\
${
containername
}
\
vendor/bin/phpcs
\
-n
\
--standard
=
PHPCompatibility
\
--runtime-set
php_version
${
PHP_VERSION_ID
}
\
${
vendors
}
\
>
${
vendorslogfile
}
echo
"See '
${
vendorslogfile
}
'."
echo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment