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