⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
olasjoys
/
vendor
/
smarty
/
smarty
/
View File Name :
run-tests-for-all-php-versions.sh
#!/bin/bash Help() { # Display Help echo "Runs PHPUnit tests for all PHP versions supported by this version of Smarty." echo echo "Syntax: $0 [-e|h]" echo "options:" echo "e Exclude a group of unit tests, e.g. -e 'slow'" echo "h Print this Help." echo } Exclude="" # Get the options while getopts ":he:" option; do case $option in e) # Exclude echo $OPTARG Exclude=$OPTARG;; h) # display Help Help exit;; \?) # Invalid option echo "Error: Invalid option" exit;; esac done if [ -z $Exclude ]; then Entrypoint="./run-tests.sh" else Entrypoint="./run-tests.sh $Exclude" fi # Runs tests for all supported PHP versions docker-compose run --entrypoint "$Entrypoint" php54 && \ docker-compose run --entrypoint "$Entrypoint" php55 && \ docker-compose run --entrypoint "$Entrypoint" php56 && \ docker-compose run --entrypoint "$Entrypoint" php70 && \ docker-compose run --entrypoint "$Entrypoint" php71 && \ docker-compose run --entrypoint "$Entrypoint" php72 && \ docker-compose run --entrypoint "$Entrypoint" php73 && \ docker-compose run --entrypoint "$Entrypoint" php74