travis CI pear PHP dependency doesn't get installed

80 views Asked by At

I've got a Python project at github, which I test on travis-ci.org. There is a small client in PHP that I use for testing it (it should be a cross-language tool).

Recently I changed the username in my github repo, committed it and it triggered the travis build. It failed, because of a PHP/pear error:

The command "sudo pear channel-discover pear.phpunit.de" failed and exited with 1 during .

You can see the build matrix below:

The previous commit was submitted and tested on travis last year and everything was ok, the pear channel-discover command worked. I changed nothing but the github username, which is not a problem for sure, so I expect that certain service became unavailable since then.

Please point me out what is wrong with my build and how can I make it work again.

1

There are 1 answers

5
Siim Kallari On

http://pear.phpunit.de has been closed down in favour of using phar files or installing phpunit via composer. You should uninstall the PEAR version of phpunit and install it from another source.

https://thephp.cc/news/2015/01/phpunit-migration-from-pear-to-phar