[travis ci] Speed up travis builds #1890

DaSourcerer opened this Issue Dec 26, 2012 · 3 comments

3 participants


As we are making heavy use of travis now, I'd like to make the following proposals in order to make our automated builds more lightweight and even a bit faster:

  • Skip code coverage analysis.
    It seems only test authors would truly be interested in this. Displaying test coverage in every automated build adds no obious valueto the builds logs. In addition, xdebug seems to have been disabled anyway. I hereby propose to strip the --coverage-text option from the phpunit call

  • Run PHPUnit without super global backup.
    By default, PHPUnit backs up every PHP super global variable before each and every test run. Turning this behaviour off via the --no-globals-backup CLI switch helps to greatly improve the speed of test runs. Tests requiring this behaviour can still enforce this via the @backupGlobals annotation. I hereby propose to add --no-globals-backup to the phpunit call in .travis.yml.

Yii Software LLC member

Agree about coverage.

Superglobals backup is required for our tests to pass, as I know.


Superglobals backup is required for our tests to pass, as I know.

Couldn't spot any at a quick glance. But as I wrote above: Enabling this behaviour for specific tests is not a problem.

@cebe cebe was assigned Dec 31, 2012
@cebe cebe added a commit that closed this issue Jan 30, 2013
@cebe cebe speedup phpunit tests on travis
fixes #1890
@cebe cebe closed this in 26f11af Jan 30, 2013
Yii Software LLC member

Done. Thanks for the proposal @DaSourcerer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment