Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Travis-CI actually do in PHP development? [closed]

Tags:

php

travis-ci

I'm new to OpenSource project. Some projects which I browse use Travis. I have read the manual, but still cannot get what actually this Travis CI doing.

Could anyone explain it or give some links?

like image 610
rahmat Avatar asked Sep 19 '12 10:09

rahmat


People also ask

What is the purpose of Travis CI?

As a continuous integration platform, Travis CI supports your development process by automatically building and testing code changes, providing immediate feedback on the success of the change. Travis CI can also automate other parts of your development process by managing deployments and notifications.

Is Travis CI same as Jenkins?

Travis CI is a commercial CI tool whereas Jenkins is an open-source tool. Travis CI takes very less time to get started while Jenkins needs elaborate setup. Travis CI offers less customization option whereas Jenkins offers vast customization options.

What is Travis PHP?

Travis CI provides several PHP versions, all of which include XDebug and PHPUnit. Travis CI uses phpenv to manage the different PHP versions installed on the virtual machines. An example .travis.yml file that tests various PHP versions: language: php php: - '5.4' - '5.6' - '7.0' - hhvm # on Trusty only - nightly.


1 Answers

TravisCI (as the CI) suggests, is a "Continuous Integration" environment. Whenever you commit code changes, it can execute the unit tests, and other tools such as codesniffer, mess detection, copy-paste detection, document builder, etc.

Even more useful, it can run your tests against different versions of PHP.

It can then report on the results of those test and tools runs, so you always know whether your changes are stable or not, or have broken other parts of the code, etc.

like image 106
Mark Baker Avatar answered Sep 22 '22 15:09

Mark Baker