Skip to content

Commit f7b340d

Browse files
committed
install swoole in laminas-ci pre-run
Signed-off-by: bota <[email protected]>
1 parent 9873259 commit f7b340d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.laminas-ci.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"extensions": [
66
"redis"
77
],
8-
"before_script": [
9-
"sudo apt-get update && sudo apt-get install -y php-dev php-pear libcurl4-openssl-dev libssl-dev gcc make autoconf",
10-
"sudo pecl install swoole",
11-
"echo 'extension=swoole.so' | sudo tee /etc/php/cli/conf.d/20-swoole.ini"
12-
],
138
"ignore_php_platform_requirements": {
149
}
1510
}

.laminas-ci/pre-run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
JOB=$3
4+
PHP_VERSION=$(echo "${JOB}" | jq -r '.php')
5+
6+
apt update
7+
apt install -y "php${PHP_VERSION}-swoole"

0 commit comments

Comments
 (0)