S
S
Steve2021-02-21 21:54:08
PHP
Steve, 2021-02-21 21:54:08

Gitlab CI and Unit tests?

I first encountered Gitlab CI. The project has Unit tests in the tests/ folder and it is necessary that they also check the code when uploading to gitlab. How can this be implemented? Nothing works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shalganov, 2021-02-22
@CenterJoin

Add .gitlab-ci.yml

before_script:
  - composer install
PHPUnit:
  script:
    - vendor/bin/phpunit --testsuite=general --colors=never --configuration phpunit.xml.dist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question