| 
									
										
										
										
											2021-09-09 00:40:34 +01:00
										 |  |  | #!/bin/sh
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cd /var/www/social || exit 1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-28 17:24:43 +01:00
										 |  |  | printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379 | 
					
						
							| 
									
										
										
										
											2021-09-09 00:40:34 +01:00
										 |  |  | yes yes | php bin/console doctrine:fixtures:load || exit 1 | 
					
						
							| 
									
										
										
										
											2021-11-11 12:28:03 +00:00
										 |  |  | php bin/console app:populate_initial_values # since loading fixtures purges the DB | 
					
						
							| 
									
										
										
										
											2021-09-09 00:40:34 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-08 21:49:12 +00:00
										 |  |  | if [ "$#" -eq 0 ] || [ -z "$*" ]; then | 
					
						
							| 
									
										
										
										
											2021-11-10 13:55:42 +00:00
										 |  |  |     vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report | 
					
						
							| 
									
										
										
										
											2021-10-28 17:24:43 +01:00
										 |  |  | else | 
					
						
							|  |  |  |     echo "Running with filter" | 
					
						
							| 
									
										
										
										
											2021-11-10 13:55:42 +00:00
										 |  |  |     vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*" | 
					
						
							| 
									
										
										
										
											2021-10-28 17:24:43 +01:00
										 |  |  | fi |