I have this basic .gitlab-ci.yml file.
image: php:7.2
before_script:
# install git
- apt-get update -yqq
- apt-get install git -yqq
# Install composer
- curl -sS https://getcomposer.org/installer | php
# Install all project dependencies
- php composer.phar install
tests:
script:
- vendor/bin/phpunit tests
This works just fine, it alerts me if unit tests fail or pass.
My question is how exactly does Gitlab CI know this? Do they parse the output of PHPUnit and see if the string FAILURES! exist?