maj projet
This commit is contained in:
parent
8cab7b6064
commit
88436296e7
1
.idea/nulib-base.iml
generated
1
.idea/nulib-base.iml
generated
@ -4,6 +4,7 @@
|
|||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/php/src" isTestSource="false" packagePrefix="nulib\" />
|
<sourceFolder url="file://$MODULE_DIR$/php/src" isTestSource="false" packagePrefix="nulib\" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/php/tests" isTestSource="true" packagePrefix="nulib\" />
|
<sourceFolder url="file://$MODULE_DIR$/php/tests" isTestSource="true" packagePrefix="nulib\" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/php/vendor" />
|
<excludeFolder url="file://$MODULE_DIR$/php/vendor" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
|
14
.idea/php-test-framework.xml
generated
Normal file
14
.idea/php-test-framework.xml
generated
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PhpTestFrameworkVersionCache">
|
||||||
|
<tools_cache>
|
||||||
|
<tool tool_name="PHPUnit">
|
||||||
|
<cache>
|
||||||
|
<versions>
|
||||||
|
<info id="Local/php/vendor/autoload.php" version="9.6.23" />
|
||||||
|
</versions>
|
||||||
|
</cache>
|
||||||
|
</tool>
|
||||||
|
</tools_cache>
|
||||||
|
</component>
|
||||||
|
</project>
|
12
.idea/php.xml
generated
12
.idea/php.xml
generated
@ -1,5 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="MessDetector">
|
||||||
|
<phpmd_settings>
|
||||||
|
<phpmd_by_interpreter asDefaultInterpreter="true" interpreter_id="846389f7-9fb5-4173-a868-1dc6b8fbb3fa" timeout="30000" />
|
||||||
|
</phpmd_settings>
|
||||||
|
</component>
|
||||||
<component name="MessDetectorOptionsConfiguration">
|
<component name="MessDetectorOptionsConfiguration">
|
||||||
<option name="transferred" value="true" />
|
<option name="transferred" value="true" />
|
||||||
</component>
|
</component>
|
||||||
@ -10,6 +15,11 @@
|
|||||||
<option name="highlightLevel" value="WARNING" />
|
<option name="highlightLevel" value="WARNING" />
|
||||||
<option name="transferred" value="true" />
|
<option name="transferred" value="true" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="PhpCodeSniffer">
|
||||||
|
<phpcs_settings>
|
||||||
|
<phpcs_by_interpreter asDefaultInterpreter="true" interpreter_id="846389f7-9fb5-4173-a868-1dc6b8fbb3fa" timeout="30000" />
|
||||||
|
</phpcs_settings>
|
||||||
|
</component>
|
||||||
<component name="PhpIncludePathManager">
|
<component name="PhpIncludePathManager">
|
||||||
<include_path>
|
<include_path>
|
||||||
<path value="$PROJECT_DIR$/php/vendor/symfony/polyfill-ctype" />
|
<path value="$PROJECT_DIR$/php/vendor/symfony/polyfill-ctype" />
|
||||||
@ -55,7 +65,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="PhpUnit">
|
<component name="PhpUnit">
|
||||||
<phpunit_settings>
|
<phpunit_settings>
|
||||||
<PhpUnitSettings configuration_file_path="$PROJECT_DIR$/php/vendor/sebastian/object-enumerator/phpunit.xml" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" use_configuration_file="true" />
|
<PhpUnitSettings custom_loader_path="$PROJECT_DIR$/php/vendor/autoload.php" phpunit_phar_path="" />
|
||||||
</phpunit_settings>
|
</phpunit_settings>
|
||||||
</component>
|
</component>
|
||||||
<component name="PsalmOptionsConfiguration">
|
<component name="PsalmOptionsConfiguration">
|
||||||
|
10
.idea/phpunit.xml
generated
Normal file
10
.idea/phpunit.xml
generated
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PHPUnit">
|
||||||
|
<option name="directories">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/tests" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -41,9 +41,9 @@ p == 1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -A PHPWRAPPER_DESTDIRS=(
|
declare -A PHPWRAPPER_DESTDIRS=(
|
||||||
[_bg_launcher.php]=sbin
|
[_bg_launcher.php]=@@SBIN@@
|
||||||
[.launcher.php]=cli
|
[.launcher.php]=@@CLI@@
|
||||||
[_wrapper.sh]=cli
|
[_wrapper.sh]=@@CLI@@
|
||||||
)
|
)
|
||||||
declare -A PHPWRAPPER_MODES=(
|
declare -A PHPWRAPPER_MODES=(
|
||||||
[_bg_launcher.php]=+x
|
[_bg_launcher.php]=+x
|
||||||
@ -156,20 +156,20 @@ if [ -n "$projdir" ]; then
|
|||||||
'
|
'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sbin_dest=sbin
|
sbin_path=sbin
|
||||||
cli_dest=cli_config
|
cli_path=cli_config
|
||||||
if [ "$install_phpwrappers" == auto ]; then
|
if [ "$install_phpwrappers" == auto ]; then
|
||||||
if [ ! -f "$PROJDIR/$COMPOSERDIR/composer.json" ]; then
|
if [ ! -f "$PROJDIR/$COMPOSERDIR/composer.json" ]; then
|
||||||
# ce doit être un projet PHP
|
# ce doit être un projet PHP
|
||||||
install_phpwrappers=
|
install_phpwrappers=
|
||||||
elif [ -d "$projdir/cli_config" ]; then
|
elif [ -d "$projdir/cli_config" ]; then
|
||||||
install_phpwrappers=1
|
install_phpwrappers=1
|
||||||
sbin_dest=sbin
|
sbin_path=sbin
|
||||||
cli_dest=cli_config
|
cli_path=cli_config
|
||||||
elif [ -d "$projdir/_cli" ]; then
|
elif [ -d "$projdir/_cli" ]; then
|
||||||
install_phpwrappers=1
|
install_phpwrappers=1
|
||||||
sbin_dest=sbin
|
sbin_path=sbin
|
||||||
cli_dest=_cli
|
cli_path=_cli
|
||||||
else
|
else
|
||||||
install_phpwrappers=
|
install_phpwrappers=
|
||||||
fi
|
fi
|
||||||
@ -184,15 +184,17 @@ if [ -n "$projdir" ]; then
|
|||||||
mode="${PHPWRAPPER_MODES[$destname]}"
|
mode="${PHPWRAPPER_MODES[$destname]}"
|
||||||
|
|
||||||
case "$destdir" in
|
case "$destdir" in
|
||||||
sbin) destdir="$PROJDIR/$sbin_dest";;
|
@@SBIN@@) destdir="$PROJDIR/$sbin_path";;
|
||||||
cli) destdir="$PROJDIR/$cli_dest";;
|
@@CLI@@) destdir="$PROJDIR/$cli_path";;
|
||||||
*) destdir="$PROJDIR/$destdir";;
|
*) destdir="$PROJDIR/$destdir";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
estep "$(relpath "$destdir/$destname")"
|
estep "$(relpath "$destdir/$destname")"
|
||||||
mkdir -p "$destdir"
|
mkdir -p "$destdir"
|
||||||
tail -n+4 "$MYDIR/$phpwrapper" |
|
tail -n+4 "$MYDIR/$phpwrapper" | sed "
|
||||||
sed "s|/@@CLI@@/|/$cli_dest/|" >"$destdir/$destname"
|
s|/@@SBIN@@/|/$sbin_path/|
|
||||||
|
s|/@@CLI@@/|/$cli_path/|
|
||||||
|
" >"$destdir/$destname"
|
||||||
[ -n "$mode" ] && chmod "$mode" "$destdir/$destname"
|
[ -n "$mode" ] && chmod "$mode" "$destdir/$destname"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user