Skip to content

Commit 845e27f

Browse files
committed
install swoole for CI checks
Signed-off-by: sergiu <sergiubota@rospace.com>
1 parent 014922a commit 845e27f

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

.laminas-ci/pre-run.sh

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
#!/bin/bash
22

3-
JOB=$3
4-
5-
COMMAND=$(echo "${JOB}" | jq -r '.command // ""')
6-
[[ "${COMMAND}" =~ ^REDIS_VERSION=([0-9\.]+) ]] || exit 0
7-
8-
PHP=$(echo "${JOB}" | jq -r '.php // ""')
9-
REDIS_VERSION=${BASH_REMATCH[1]}
10-
11-
echo "SETUP: Installing ext-redis $REDIS_VERSION with PHP $PHP..."
12-
pecl install -f --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes"' igbinary redis-${REDIS_VERSION}
13-
14-
if [ $? -ne 0 ]; then
15-
echo "ERROR: Installation of ext-redis $REDIS_VERSION with PHP $PHP failed."
16-
exit 1
17-
fi
18-
19-
echo "extension=redis.so" > /etc/php/${PHP}/mods-available/redis.ini
3+
PHP_VERSION="$1"
4+
apt install make
5+
pecl install swoole
6+
echo "extension=swoole.so" > /etc/php/${PHP_VERSION}/mods-available/60-swoole.ini
7+
phpenmod -v ${PHP} -s cli swoole

0 commit comments

Comments
 (0)