Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:testing:continuous_integration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:testing:continuous_integration [2015/12/10 19:53] – demiankatz | development:testing:continuous_integration [2021/05/06 11:30] (current) – [Travis CI] demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Continuous Integration ====== | ====== Continuous Integration ====== | ||
- | VuFind uses [[http:// | + | VuFind uses [[http:// |
Line 16: | Line 16: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | | + | * [[http:// |
- | | + | |
- | ==== Travis CI ==== | + | ==== GitHub Actions / Travis CI ==== |
- | [[http:// | + | [[https:// |
==== Phing ==== | ==== Phing ==== | ||
- | Phing is a build tool designed as the PHP-based answer to [[http:// | + | Phing is a build tool designed as the PHP-based answer to [[http:// |
Resources: | Resources: | ||
Line 31: | Line 30: | ||
==== PHPUnit ==== | ==== PHPUnit ==== | ||
- | PHPUnit is a unit testing framework for PHP. See the [[: | + | PHPUnit is a unit testing framework for PHP. See the [[development: |
- | ==== Mink / Zombie.js | + | ==== Mink / Selenium |
- | We use Mink (a browser automation abstraction library) with Zombie.js | + | We use Mink (a browser automation abstraction library) with either Chrome in headless mode or Selenium |
Resources: | Resources: | ||
* [[http:// | * [[http:// | ||
- | * [[http://zombie.labnotes.org/|Zombie.js | + | * [[http://www.seleniumhq.org/|Selenium |
===== Setting up Jenkins ===== | ===== Setting up Jenkins ===== | ||
Line 105: | Line 105: | ||
Install ImageMagick development package (e.g. ImageMagick-devel). | Install ImageMagick development package (e.g. ImageMagick-devel). | ||
- | Install | + | Install |
- | + | * It used to be necessary to install | |
- | pear channel-discover pear.phpunit.de | + | |
- | pear install --alldeps phpunit/PHPUnit | + | |
- | + | ||
- | Install phpcpd | + | |
- | + | ||
- | pear channel-discover pear.symfony.com | + | |
- | pear channel-discover pear.netpirates.net | + | |
- | pear install phpunit/phpcpd | + | |
- | + | ||
- | Install phpdoc | + | |
- | + | ||
- | pear channel-discover pear.phpdoc.org | + | |
- | | + | |
- | + | ||
- | Install phpmd | + | |
- | + | ||
- | pear channel-discover pear.pdepend.org | + | |
- | pear channel-discover pear.phpmd.org | + | |
- | pear install phpmd/ | + | |
- | + | ||
- | Install phpcs | + | |
- | + | ||
- | pear install PHP_CodeSniffer | + | |
- | + | ||
- | Install phploc | + | |
- | pear install phpunit/ | + | |
Install GraphViz (optional) | Install GraphViz (optional) | ||
- | * Get a recent version. E.g. the version in CentOS 6 (2.26) | + | * GraphViz can be used to draw some graphs as part of the PhpDocumentor process; however, it doesn' |
==== Configure Jenkins ==== | ==== Configure Jenkins ==== | ||
Line 161: | Line 135: | ||
* Build triggers: | * Build triggers: | ||
* [x] Build when a change is pushed to GitHub (note that you need to configure the hooks: https:// | * [x] Build when a change is pushed to GitHub (note that you need to configure the hooks: https:// | ||
+ | * Execute shell [this must run BEFORE Phing]: | ||
+ | * composer install | ||
* Build / Invoke Phing targets: | * Build / Invoke Phing targets: | ||
+ | * Phing version: Be sure to set up a custom Phing installation in Manage Jenkins / Configure System. This should have a PHP Command setting of " | ||
* Targets: main | * Targets: main | ||
* If you need to customize the build file, click Advanced... and enter your custom build file name in "Phing Build File" | * If you need to customize the build file, click Advanced... and enter your custom build file name in "Phing Build File" | ||
Line 174: | Line 151: | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
development/testing/continuous_integration.1449777195.txt.gz · Last modified: 2015/12/10 19:53 by demiankatz