Skip to:
Content

BuddyPress.org

Changeset 8017


Ignore:
Timestamp:
03/02/2014 12:21:45 AM (8 years ago)
Author:
djpaul
Message:

Unit Tests: switch to using develop.svn.wordpress.org for the travis-ci test environment instead of unit-tests.svn.wordpress.org.

unit-tests.svn is a deprecated repo and develop.svn's test suite has diverged from it to the point where there are a couple of important differences in the test environment that affect how BuddyPress unit tests are run on travis-ci; the defaults for error_reporting and handling of functions that have been marked as deprecated.

Recent commits such as r8015 have been successful in adjusting the error_reporting level but our tests that have been marked as @expectedDeprecated are currently not handled correctly on travis-ci and on any local testing environments that use unit-tests.svn along with a development error_reporting level.

A consequence of switching the travis-ci script to develop.svn is that, as the WP core-to-develop SVN restructing happened between WP 3.6 and 3.7, SVN versions of WordPress prior to 3.7 don't have the seperate src and tests folders which the updated travis-ci script relies on. The tradeoff is that we'll have increased confidence in our travis-ci environment going forwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r8015 r8017  
    88
    99env:
    10     - WP_VERSION=master WP_MULTISITE=0
    11     - WP_VERSION=3.8.1 WP_MULTISITE=0
    12     - WP_VERSION=3.7.1 WP_MULTISITE=0
    13     - WP_VERSION=3.6.1 WP_MULTISITE=0
    14     - WP_VERSION=master WP_MULTISITE=1
    15     - WP_VERSION=3.8.1 WP_MULTISITE=1
    16     - WP_VERSION=3.7.1 WP_MULTISITE=1
    17     - WP_VERSION=3.6.1 WP_MULTISITE=1
     10    - WP_VERSION=trunk WP_MULTISITE=0
     11    - WP_VERSION=tags/3.8.1 WP_MULTISITE=0
     12    - WP_VERSION=tags/3.7.1 WP_MULTISITE=0
     13    - WP_VERSION=trunk WP_MULTISITE=1
     14    - WP_VERSION=tags/3.8.1 WP_MULTISITE=1
     15    - WP_VERSION=tags/3.7.1 WP_MULTISITE=1
    1816
    1917before_script:
    2018    # set up WP install
    2119    - WP_CORE_DIR=/tmp/wordpress/
    22     - wget -nv -O /tmp/wordpress.tar.gz https://github.com/WordPress/WordPress/tarball/$WP_VERSION
    2320    - mkdir -p $WP_CORE_DIR
    24     - tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
     21    - svn co --ignore-externals https://develop.svn.wordpress.org/$WP_VERSION $WP_CORE_DIR
    2522    - plugin_slug=$(basename $(pwd))
    26     - plugin_dir=$WP_CORE_DIR/wp-content/plugins/$plugin_slug
     23    - plugin_dir=$WP_CORE_DIR/src/wp-content/plugins/$plugin_slug
    2724    - cd ..
    2825    - mv $plugin_slug $plugin_dir
    29     # set up testing suite
    30     - export WP_TESTS_DIR=/tmp/wordpress-tests/
    31     - svn co --ignore-externals http://unit-tests.svn.wordpress.org/trunk/ $WP_TESTS_DIR
    32     - cd $WP_TESTS_DIR
     26    # set up tests config
     27    - cd $WP_CORE_DIR
    3328    - cp wp-tests-config-sample.php wp-tests-config.php
    34     - sed -i "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php
    35     - sed -i "s/yourdbnamehere/wordpress_test/" wp-tests-config.php
     29    - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
    3630    - sed -i "s/yourusernamehere/root/" wp-tests-config.php
    3731    - sed -i "s/yourpasswordhere//" wp-tests-config.php
    38     - sed -i "s:// define( 'WP_DEBUG:define( 'WP_DEBUG:" wp-tests-config.php
    3932    # set up database
    4033    - mysql -e 'CREATE DATABASE wordpress_test;' -uroot
Note: See TracChangeset for help on using the changeset viewer.