Arthur Guiot Arthur Guiot - 13 days ago 7
PHP Question

Travis-Ci.org give me an error message

I have a problem, I'm using Travis-ci.org but, it always tell me that my build fail, and I don't know why.
Here is my GitHub project : https://github.com/white-frameworks/White-PHP

Answer

You haven't added phpunit's XML or anything. There are no test cases. This is the output in your Travis Job:

The command "phpunit" exited with 2.

You have to add the Test.php like this, but in your .travis.yml, there's nothing:

language: php
php:
- 5.5
- 5.4
- hhvm
script: phpunit Test.php

You need to add the PHPUnit's configuration. Read more on how to integrate PHPUnit by looking at Building a PHP project.