mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-25 21:39:07 +00:00
35 lines
930 B
Bash
Executable File
35 lines
930 B
Bash
Executable File
start_php_servers() {
|
|
for i in $(seq 0 6); do
|
|
port=8000
|
|
(( port += $i ))
|
|
php -S "127.0.0.1:${port}" -t tests/PHPCurlClass/ &
|
|
done
|
|
}
|
|
|
|
set -x
|
|
echo "CI_PHP_VERSION: ${CI_PHP_VERSION}"
|
|
php -r "var_dump(phpversion());"
|
|
php -r "var_dump(curl_version());"
|
|
|
|
composer self-update
|
|
composer install --prefer-source --no-interaction
|
|
|
|
# Let test server know we should allow testing.
|
|
export PHP_CURL_CLASS_TEST_MODE_ENABLED="yes"
|
|
|
|
if [[ "${CI_PHP_VERSION}" == "7.0" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "7.1" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "7.2" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "7.3" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "7.4" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "8.0" ]]; then
|
|
start_php_servers
|
|
elif [[ "${CI_PHP_VERSION}" == "nightly" ]]; then
|
|
start_php_servers
|
|
fi
|