Skip to:
Content

BuddyPress.org

Changeset 8512


Ignore:
Timestamp:
06/14/2014 06:38:35 PM (11 years ago)
Author:
boonebgorges
Message:

Fix Travis CI tests for PHP 5.2

PHP 5.2 tests have been broken on Travis CI since r8017, the switch to using
WP's "develop" suite instead of the old wp-tests repo. This changeset fixes
these builds by making the following changes:

  • Better consistency with the use of environment variables (swap out the old WP_CORE_DIR for WP_DEVELOP_DIR, which is what BP itself expects when setting up PHPUnit)
  • Use of export when creating the environment variable, to ensure that PHP has access to it across shell sessions

Hat tip to netweb for an initial patch addressing this issue

See #5708

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r8510 r8512  
    2424before_script:
    2525    # set up WP install
    26     - WP_CORE_DIR=/tmp/wordpress/
    27     - mkdir -p $WP_CORE_DIR
    28     - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_CORE_DIR
     26    - export WP_DEVELOP_DIR=/tmp/wordpress/
     27    - mkdir -p $WP_DEVELOP_DIR
     28    - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
    2929    - plugin_slug=$(basename $(pwd))
    30     - plugin_dir=$WP_CORE_DIR/src/wp-content/plugins/$plugin_slug
     30    - plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug
    3131    - cd ..
    3232    - mv $plugin_slug $plugin_dir
    3333    # set up tests config
    34     - cd $WP_CORE_DIR
     34    - cd $WP_DEVELOP_DIR
     35    - echo $WP_DEVELOP_DIR
    3536    - cp wp-tests-config-sample.php wp-tests-config.php
    3637    - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
Note: See TracChangeset for help on using the changeset viewer.