[buddypress-trac] [BuddyPress Trac] #5708: Broken Travis CI PHP 5.2 tests and improved Travis CI performance

buddypress-trac noreply at wordpress.org
Thu Jun 12 03:17:29 UTC 2014


#5708: Broken Travis CI PHP 5.2 tests and improved Travis CI performance
--------------------------+-----------------------------
 Reporter:  netweb        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 Currently Travis CI PHP 5.2 tests are failing, though it is not reporting
 as failed. The Travis CI PHP 5.2 environment cannot locate the `wp-tests-
 config.php` file.

 Example https://travis-ci.org/buddypress/BuddyPress/jobs/27356614

 The attached patch fixes this and also improves Travis CI performance and
 reporting

 Comparrison of builds via latest r8503 changeset
 https://travis-ci.org/buddypress/BuddyPress/builds/27356612
 https://travis-ci.org/ntwb/BuddyPress/builds/27369740
 ''(By coincidence the build above includes two errored builds where Travis
 failed to install the NPM dependencies)''

 ----

 * Switch to a 'shallow' Git clone of the official WordPress Git repo for
 faster WordPress upstream checkout, timings below

 * The addition of the `fast_finish: true` flag in the build matrix will
 mark the build `passed` or `errored` as soon as a single build job has
 failed. Previously the build status was not reported until ALL tests had
 completed regardless of status.

 * Moves the 'build configuration' to `before_install` allowing non-
 BuddyPress test configuration to report as `errored` (MySQL database
 creation, and WordPress Git checkout etc). When a failure occurs in this
 section the build is marked as errored which is a more accurate
 description in that the environment we are setting up has failed and not
 the actual BuddyPress tests we are testing.

 * Introduces HHVM testing into the build matrix and allowed to fail in
 that they will not be included in the overall build job failed, errored,
 or passed build status. This allows BuddyPress testing to play nice with
 alpha/beta versions of HHVM until stable and officially released.

 * Changes the PHP 5.5 test environment to disable `WP_DEBUG` with
 WordPress 3.7 branch, 3.8, 3.9 and 4.0 are not affected by the `mysqli`
 issue.
 ----

 * wget http://wordpress.org/latest.tar.gz -OutFile ./wordpress.tar.gz
 (Only 'core, not dev repo)
  * Avg ~15 seconds (WordPress core only, no tests or tools folder)
 * wget https://github.com/wordpress/wordpress/archive/master.zip -OutFile
 ./wordpress-gh.tar.gz
  * Avg ~55 seconds
 * svn co --ignore-externals https://develop.svn.wordpress.org/tags/3.9
 svn-tag39
  * Avg ~70 seconds
 * git clone --depth=1 --branch="tags/3.9.1"
 git://develop.git.wordpress.org/ tag39\
  * Avg ~30 seconds

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5708>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list