pear:qa:ci
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
pear:qa:ci [2012/04/12 23:21] – More detail re dep management clockwerx | pear:qa:ci [2012/04/12 23:32] – [How do I make sure my tests work?] clockwerx | ||
---|---|---|---|
Line 5: | Line 5: | ||
http:// | http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
* [[https:// | * [[https:// | ||
Line 12: | Line 12: | ||
===== Jenkins ===== | ===== Jenkins ===== | ||
- | Jenkins is a continuous integration platform. Currently, all packages in both PEAR and PEAR2 are built by it. | + | Jenkins is a continuous integration platform. Currently, all packages in both PEAR and PEAR2 were scanned for the presence of a ' |
+ | |||
+ | ==== Access === | ||
+ | Jenkins is configured to authenticate against the github organisations of pear / pear2. You simply need to be associated with one of the organisations to modify builds. | ||
+ | |||
+ | ==== Adding a new job/build ==== | ||
+ | * Create job | ||
+ | * Enter package name | ||
+ | * Enter link to github | ||
+ | * Enter the read-only git url into source management | ||
+ | * Select 'build on push from github' | ||
+ | * Add either manual build steps or invoke an ant build.xml target. Manual steps should include executing | ||
+ | * phpunit --coverage-html build/ | ||
+ | * php ~/ | ||
+ | * Add in Post-build Actions for ' | ||
==== How do I make sure my tests work? ==== | ==== How do I make sure my tests work? ==== | ||
- | In general, we encourage the use of an AllTests.php - we target PHPUnit 3.4 at this time. | + | In general, we encourage the use of an appropriate phpunit.xml - we target PHPUnit 3.6 at this time. |
- | Your package directory layout should allow you to successfully run your test suite as below: | + | Your package directory layout should allow you to successfully run your test suite as below (assuming svn): |
<code bash> | <code bash> | ||
$ cd Foo_Bar/ | $ cd Foo_Bar/ | ||
- | $ php tests/AllTests.php | + | $ phpunit -c phpunit.xml |
</ | </ | ||
- | ... or as per the phpunit command above. | ||
- | |||
- | http:// | ||
==== My directory layout doesn' | ==== My directory layout doesn' | ||
Line 41: | Line 52: | ||
# Run tests to confirm no fatal errors, using one of | # Run tests to confirm no fatal errors, using one of | ||
- | $ php tests/ | ||
$ pear run-tests -r tests/ | $ pear run-tests -r tests/ | ||
$ phpunit tests/ | $ phpunit tests/ | ||
Line 104: | Line 114: | ||
- | The second is to utilise [http:// | + | The second is to utilise |
==== Todo ==== | ==== Todo ==== |
pear/qa/ci.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1