-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpunitall
executable file
·31 lines (24 loc) · 1.1 KB
/
phpunitall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# PHPUnit tests ran against different PHP versions
# This script should be regularly updated to run for ALL currently supported PHP versions
date;
echo 'php 8.0:';
/usr/bin/php8.0 -v | grep -E 'PHP [0-9]+\.[0-9]+\.[0-9]+'
/usr/bin/php8.0 artisan test --parallel
echo 'php 8.1:';
/usr/bin/php8.1 -v | grep -E 'PHP [0-9]+\.[0-9]+\.[0-9]+'
/usr/bin/php8.1 artisan test --parallel
echo 'php 8.2:';
/usr/bin/php8.2 -v | grep -E 'PHP [0-9]+\.[0-9]+\.[0-9]+'
/usr/bin/php8.2 artisan test --parallel
# brainium/paratest needs updates that require PHP 8.1 (or higher) in order to work with PHP 8.3/8.4
# So, NOT doing parallel testing attm
echo 'php 8.3:';
echo 'Note: some test dependencies fail, this known issue will be resolved by version 6.0'
/usr/bin/php8.3 -v | grep -E 'PHP [0-9]+\.[0-9]+\.[0-9]+'
#/usr/bin/php8.3 artisan test --parallel
/usr/bin/php8.3 ./vendor/bin/phpunit
echo 'php 8.4:';
echo 'Note: some test dependencies fail, this known issue will be resolved by version 6.0'
/usr/bin/php8.4 -v | grep -E 'PHP [0-9]+\.[0-9]+\.[0-9]+'
#/usr/bin/php8.4 artisan test --parallel
/usr/bin/php8.4 ./vendor/bin/phpunit