Strange behavior runner executor
I have this demo project
I write simple gitlab ci
Stage build is not interested for me now.
Stage test base on image php:7.3-cli-alpine
and there are some commands in block script
If the list of commands is
- cp -r ${CI_PROJECT_DIR}/* /var/www/html
- cd /var/www/html
- php -S localhost:8000 -t . &
- apk add --update --no-cache curl postgresql-dev; docker-php-ext-install pdo_mysql pdo_pgsql pgsql
- ls -alt
- curl -i localhost:8000
Then php cli server correctly get request and return error because driver was installed after starting server Successfull job
If the list commands is
- apk add --update --no-cache curl postgresql-dev; docker-php-ext-install pdo_mysql pdo_pgsql pgsql
- cp -r ${CI_PROJECT_DIR}/* /var/www/html
- cd /var/www/html
- php -S localhost:8000 -t . &
- ls -alt
- curl -i localhost:8000
I got error on last step curl: (7) Failed to connect to localhost port 8000: Connection refused
Failed job
If somebody can say that i doing wrong, i will be grateful
gitlab-runner: 12.1.0