install tests
This commit is contained in:
parent
266f39f91b
commit
01249bf182
@ -7,7 +7,7 @@ echo " ";
|
|||||||
echo "####### fix file permissions ######";
|
echo "####### fix file permissions ######";
|
||||||
|
|
||||||
`which setfacl` > TEST
|
`which setfacl` > TEST
|
||||||
if [ echo $TEST == 'acl not found' ]; then
|
if [ echo $TEST == 'acl not found' ]||[ echo $TEST == 'acl non trouvé' ]; then
|
||||||
echo "acl is not installed"
|
echo "acl is not installed"
|
||||||
sudo apt install acl -y
|
sudo apt install acl -y
|
||||||
exit
|
exit
|
||||||
@ -22,7 +22,7 @@ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
|
|||||||
|
|
||||||
echo "####### phpunit test suite ######";
|
echo "####### phpunit test suite ######";
|
||||||
`which phpunit` > TEST
|
`which phpunit` > TEST
|
||||||
if [ echo $TEST == 'phpunit not found' ]; then
|
if [ echo $TEST == 'phpunit not found' ]||[ echo $TEST == 'phpunit non trouvé' ]; then
|
||||||
echo "phpunit is not installed"
|
echo "phpunit is not installed"
|
||||||
sudo apt install phpunit -y
|
sudo apt install phpunit -y
|
||||||
exit
|
exit
|
||||||
@ -33,7 +33,7 @@ fi
|
|||||||
|
|
||||||
echo "####### node packages ######";
|
echo "####### node packages ######";
|
||||||
`which npm` > TEST
|
`which npm` > TEST
|
||||||
if [ echo $TEST == 'npm not found' ]; then
|
if [ echo $TEST == 'npm not found' ]||[ echo $TEST == 'npm non trouvé' ]; then
|
||||||
echo "npm is not installed"
|
echo "npm is not installed"
|
||||||
sudo apt install npm -y
|
sudo apt install npm -y
|
||||||
exit
|
exit
|
||||||
@ -44,7 +44,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
`which yarn` > TEST
|
`which yarn` > TEST
|
||||||
if [ echo $TEST == 'yarn not found' ]; then
|
if [ echo $TEST == 'yarn not found' ]||[ echo $TEST == 'yarn non trouvé' ]; then
|
||||||
echo "yarn is not installed"
|
echo "yarn is not installed"
|
||||||
sudo npm i -g yarn
|
sudo npm i -g yarn
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user