mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
php7: add CI test script
This adds basic checks for php7 core and module packages. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
23
lang/php7/test.sh
Normal file
23
lang/php7/test.sh
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
php7-cgi)
|
||||||
|
php-cgi -v | grep "$2"
|
||||||
|
;;
|
||||||
|
php7-cli)
|
||||||
|
php-cli -v | grep "$2"
|
||||||
|
;;
|
||||||
|
php7-fpm)
|
||||||
|
php-fpm -v | grep "$2"
|
||||||
|
;;
|
||||||
|
php7-mod-*)
|
||||||
|
PHP_MOD="${1#php7-mod-}"
|
||||||
|
PHP_MOD="${PHP_MOD//-/_}"
|
||||||
|
|
||||||
|
opkg install php7-cli
|
||||||
|
|
||||||
|
php-cli -m | grep -i "$PHP_MOD"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user