From 01249bf18293a878218eaccd728363b995dd3267 Mon Sep 17 00:00:00 2001 From: ty kayn Date: Sat, 11 May 2019 15:27:46 +0200 Subject: [PATCH] install tests --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 47359962..caafeabf 100755 --- a/install.sh +++ b/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