mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-11 02:46:28 +00:00
Unify continuous integration and run scripts more closely
This commit is contained in:
+3
-1
@@ -45,11 +45,13 @@ export PHP_CURL_CLASS_TEST_MODE_ENABLED="yes"
|
||||
# Start test servers. Run servers on different ports to allow simultaneous
|
||||
# requests without blocking.
|
||||
server_count=7
|
||||
declare -A pids
|
||||
for i in $(seq 0 $(("${server_count}" - 1))); do
|
||||
port=8000
|
||||
(( port += $i ))
|
||||
|
||||
php -S "127.0.0.1:${port}" -t PHPCurlClass/ &
|
||||
php -S "127.0.0.1:${port}" -t PHPCurlClass/ &> /dev/null &
|
||||
pids["${i}"]="${!}"
|
||||
done
|
||||
|
||||
errors=()
|
||||
|
||||
Reference in New Issue
Block a user