Skip to:
Content

bbPress.org

Ticket #2886: 2886.diff

File 2886.diff, 1.4 KB (added by netweb, 6 years ago)
  • .travis.yml

    diff --git .travis.yml .travis.yml
    index 41b3620..18fb617 100644
    before_install: 
    4550    - mkdir -p $WP_DEVELOP_DIR
    4651    # clone the WordPress develop repo
    4752    - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
     53    # setup BP_PLUGIN_DIR (needed for BuddyPress to bootstrap WP PHPUnit tests)
     54    - export BP_PLUGIN_DIR=/tmp/buddypress/
     55    - mkdir -p $BP_PLUGIN_DIR
    4856    # clone the BuddyPress develop repo
    49     - git clone --depth=1 git://buddypress.git.wordpress.org/ $WP_DEVELOP_DIR/src/wp-content/plugins/buddypress
    50     - plugin_slug=$(basename $(pwd))
    51     - plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug
    52     - cd ..
    53     - mv $plugin_slug $plugin_dir
     57    - git clone --depth=1 git://buddypress.git.wordpress.org/ $BP_PLUGIN_DIR
     58    # setup BP_TESTS_DIR (needed for BuddyPress to bootstrap WP PHPUnit tests)
     59    - export BP_TESTS_DIR=/tmp/buddypress/tests/includes/
    5460    # set up tests config
    5561    - cd $WP_DEVELOP_DIR
    5662    - echo $WP_DEVELOP_DIR
    before_install: 
    6369    # set up database
    6470    - mysql -e 'CREATE DATABASE wordpress_test;' -uroot
    6571    # prepare for running the tests
    66     - cd $plugin_dir
     72    - cd $TRAVIS_BUILD_DIR
    6773    - npm install -g grunt-cli
    6874
    6975# before_script: Failures in this section will result in build status 'failed'