I am having some trouble running PHPUnit from Travis.
My travis configuration is simple
language: php
php:
- 7.0
- 7.1
script: phpunit
And my phpunit.xml is as follows,
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="Basic Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
And my composer.json
{
"name": "nikhilkuria/nikeandphp",
"description": "A PHP library used to work with Nike+ API",
"type": "library",
"authors": [
{
"name": "nikhilkuria",
"email": "[email protected]"
}
],
"require": {
"monolog/monolog": "^1.22"
},
"require-dev": {
"phpunit/phpunit": "5.7.*"
},
"autoload": {
"psr-4": {"NikeAndPhp\\": "src/NikeAndPhp"}
}
}
The problem is that Travis is not able to find my autoload.php. This is what i see in travis logs,
Cannot open file "/home/travis/build/nikhilkuria/nikeandphp/vendor/autoload.php".
The entire logs are here.
What seems to be missing here?