My PHP project does not use any autotests yet, when I do a build with a simple travis.yml file, it will fail with the error "The command" phpunit "exited with 2."

language: php sudo: required php: - '5.4' notifications: email: recipients: - example@mail.com dist: trusty install: - true # Building Specific Branches branches: # safelist only: - dev 

    1 answer 1

    According to the Travis documentation for PHP :

    The default test script is phpunit.

    If your project uses something other than PHPUnit, you can override it.

    To do this, you can change the value of the script in the configuration file :

     script: - do something - do something else