install tests
This commit is contained in:
parent
266f39f91b
commit
01249bf182
12
install.sh
12
install.sh
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "################################";
|
echo "################################";
|
||||||
echo "start UPDATE of symfony project";
|
echo "start UPDATE of symfony project";
|
||||||
@ -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,14 +44,14 @@ 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
|
||||||
else
|
else
|
||||||
echo "yarn est bien là"
|
echo "yarn est bien là"
|
||||||
yarn -v
|
yarn -v
|
||||||
|
|
||||||
echo "####### build front end with yarn ######";
|
echo "####### build front end with yarn ######";
|
||||||
yarn
|
yarn
|
||||||
yarn run encore production
|
yarn run encore production
|
||||||
|
Loading…
Reference in New Issue
Block a user