diff --git .travis.yml .travis.yml
index 41b3620..18fb617 100644
|
|
|
before_install:
|
| 45 | 50 | - mkdir -p $WP_DEVELOP_DIR |
| 46 | 51 | # clone the WordPress develop repo |
| 47 | 52 | - 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 |
| 48 | 56 | # 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/ |
| 54 | 60 | # set up tests config |
| 55 | 61 | - cd $WP_DEVELOP_DIR |
| 56 | 62 | - echo $WP_DEVELOP_DIR |
| … |
… |
before_install:
|
| 63 | 69 | # set up database |
| 64 | 70 | - mysql -e 'CREATE DATABASE wordpress_test;' -uroot |
| 65 | 71 | # prepare for running the tests |
| 66 | | - cd $plugin_dir |
| | 72 | - cd $TRAVIS_BUILD_DIR |
| 67 | 73 | - npm install -g grunt-cli |
| 68 | 74 | |
| 69 | 75 | # before_script: Failures in this section will result in build status 'failed' |