Browse Source

php7: add CI test script

This adds basic checks for php7 core and module packages.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lilik-openwrt-22.03
Michael Heimpold 4 years ago
parent
commit
1054d4cd17
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      lang/php7/test.sh

+ 23
- 0
lang/php7/test.sh View 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

Loading…
Cancel
Save