install tests

This commit is contained in:
ty kayn 2019-05-11 15:27:46 +02:00
parent 266f39f91b
commit 01249bf182

View File

@ -7,7 +7,7 @@ echo " ";
echo "####### fix file permissions ######";
`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"
sudo apt install acl -y
exit
@ -22,7 +22,7 @@ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
echo "####### phpunit test suite ######";
`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"
sudo apt install phpunit -y
exit
@ -33,7 +33,7 @@ fi
echo "####### node packages ######";
`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"
sudo apt install npm -y
exit
@ -44,7 +44,7 @@ fi
`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"
sudo npm i -g yarn
exit