pear:qa:ci
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pear:qa:ci [2011/04/06 10:59] – external edit 127.0.0.1 | pear:qa:ci [2012/04/12 23:13] – [My unit tests need a (database/server/setup/configuration)] clockwerx | ||
---|---|---|---|
Line 6: | Line 6: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
+ | * [[https:// | ||
- | The helper scripts live at http://svn.php.net/ | + | The helper scripts live at https://github.com/ |
- | ===== Cruise Control | + | ===== Jenkins |
- | Cruise Control | + | Jenkins |
- | + | ||
- | The build task does: | + | |
- | - Update svn | + | |
- | - Run '' | + | |
- | - Run '' | + | |
- | - Run '' | + | |
- | - Run '' | + | |
- | - Run '' | + | |
- | - Build the package with Pyrus '' | + | |
- | + | ||
- | If either the unit tests or building the package fails, the build is marked as a failure. | + | |
- | + | ||
- | A file, called trunk.tar.gz is created as a build artifact. | + | |
==== How do I make sure my tests work? ==== | ==== How do I make sure my tests work? ==== | ||
Line 36: | Line 24: | ||
... or as per the phpunit command above. | ... or as per the phpunit command above. | ||
+ | |||
+ | http:// | ||
==== My directory layout doesn' | ==== My directory layout doesn' | ||
Line 54: | Line 44: | ||
$ pear run-tests -r tests/ | $ pear run-tests -r tests/ | ||
$ phpunit tests/ | $ phpunit tests/ | ||
- | $ phpunit tests/ | ||
# Commit | # Commit | ||
Line 68: | Line 57: | ||
- Checking your environment and skipping the test if it cannot run | - Checking your environment and skipping the test if it cannot run | ||
+ | There is also a test mysql instance available. | ||
+ | |||
+ | > Hi Daniel: | ||
+ | > | ||
+ | > On Wed, Nov 16, 2011 at 08:34:04AM +1030, Daniel O' | ||
+ | > > http:// | ||
+ | > > | ||
+ | > > This and a few others obviously need a database to be tested properly. | ||
+ | > > Certainly that machine has mysql on it; or sqlite is probably available - | ||
+ | > > what would be needed to load up an appropriate schema/tear it down after | ||
+ | > > the tests? | ||
+ | > | ||
+ | > I agree and mentioned this on pear-qa a while ago. Take a look at what | ||
+ | > I committed to DB tests yesterday. | ||
+ | > MYSQL_TEST_* environment variables, which are used for PHP's tests. | ||
+ | > should create a test user and database and set those environment | ||
+ | > variables in the cron job, or whatever. | ||
+ | > | ||
+ | > A similar setup should be made for PostgreSQL in PEAR and PHP's unit | ||
+ | > tests. | ||
+ | > | ||
+ | > SQLite3 tests should use ": | ||
+ | > | ||
+ | > Thanks, | ||
+ | > | ||
+ | > --Dan | ||
==== Todo ==== | ==== Todo ==== | ||
- | - Fix how pear2-packages-all and pear2/all relate to the test suite | + | - Put more packages |
- | - Generate a changelog, package.xml file (possibly in pearweb, possible on the command line) automatically; | + | |
- | - Investigate what's up with the Metrics and other Cruise Control errors | + | |
- Investigate a notification task to package maintainers? | - Investigate a notification task to package maintainers? | ||
- Investigate allowing bootstrapped build.xml files back in (Pyrus) | - Investigate allowing bootstrapped build.xml files back in (Pyrus) | ||
Line 80: | Line 93: | ||
Before releasing a new version of PEAR, we need to make sure it runs on as many systems as possible. It's pretty easy: | Before releasing a new version of PEAR, we need to make sure it runs on as many systems as possible. It's pretty easy: | ||
- | - Install the new PEAR (1.7.0RC2 currently) | + | - Install the new PEAR |
- Make sure you have the XML_RPC package | - Make sure you have the XML_RPC package | ||
- | - Checkout pear-core from CVS to get the tests | + | - Checkout pear-core from the repository |
- Run the tests | - Run the tests | ||
Line 88: | Line 101: | ||
pear upgrade -f PEAR | pear upgrade -f PEAR | ||
pear upgrade XML_RPC | pear upgrade XML_RPC | ||
- | cvs -d :pserver: | + | git clone git://github.com/pear/pear-core.git |
cd pear-core/ | cd pear-core/ | ||
</ | </ |
pear/qa/ci.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1