Index: .travis.yml
===================================================================
--- .travis.yml	(revision 5343)
+++ .travis.yml	(working copy)
@@ -1,5 +1,9 @@
+# Travis CI Configuration File
+
+# Tell Travis CI we're using PHP
 language: php
 
+# PHP versions to test.
 php:
     - 5.2
     - 5.3
@@ -6,43 +10,49 @@
     - 5.4
     - 5.5
 
+# WordPress versions to test.
 env:
-    - WP_VERSION=master WP_MULTISITE=0
-    - WP_VERSION=3.8 WP_MULTISITE=0
-    - WP_VERSION=3.7.1 WP_MULTISITE=0
-    - WP_VERSION=3.6.1 WP_MULTISITE=0
-    - WP_VERSION=3.5.2 WP_MULTISITE=0
-    - WP_VERSION=master WP_MULTISITE=1
-    - WP_VERSION=3.8 WP_MULTISITE=1
-    - WP_VERSION=3.7.1 WP_MULTISITE=1
-    - WP_VERSION=3.6.1 WP_MULTISITE=1
-    - WP_VERSION=3.5.2 WP_MULTISITE=1
+    - WP_VERSION=master
+    - WP_VERSION=3.9.0
+    - WP_VERSION=3.8.3
+    - WP_VERSION=3.7.3
 
+# Build matrix custom includes, excludes and allowed failures
+
+matrix:
+  include:
+    - php: 5.6
+      env: WP_VERSION=master
+  exclude:
+    - php: 5.5
+      env: WP_VERSION=3.7.3
+  allow_failures:
+    - php: 5.6
+
 before_script:
-    # set up WP install
-    - WP_CORE_DIR=/tmp/wordpress/
-    - wget -nv -O /tmp/wordpress.tar.gz https://github.com/WordPress/WordPress/tarball/$WP_VERSION
-    - mkdir -p $WP_CORE_DIR
-    - tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
-    - plugin_slug=$(basename $(pwd))
-    - plugin_dir=$WP_CORE_DIR/wp-content/plugins/$plugin_slug
-    - cd ..
-    - mv $plugin_slug $plugin_dir
-    # set up testing suite
-    - export WP_TESTS_DIR=/tmp/wordpress-tests/
-    - svn co --ignore-externals http://unit-tests.svn.wordpress.org/trunk/ $WP_TESTS_DIR
-    - cd $WP_TESTS_DIR
+    # setup WP_DEVELOP_DIR (needed for bbPress to bootstrap WP PhpUnit tests)
+    - WP_DEVELOP_DIR=/tmp/wordpress
+    # clone the WordPress develop repo
+    - git clone --depth=50 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
+    - mv $TRAVIS_BUILD_DIR /tmp/wordpress/src/wp-content/plugins/bbpress
+    - cd $WP_DEVELOP_DIR
+    # setub db
+    - mysql -e "CREATE DATABASE wordpress_test;" -uroot
+    # setub wp-config
     - cp wp-tests-config-sample.php wp-tests-config.php
-    - sed -i "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php
-    - sed -i "s/yourdbnamehere/wordpress_test/" wp-tests-config.php
+    - sed -i "s:dirname( __FILE__ ) . '/wordpress/':'$WP_DEVELOP_DIR':" wp-tests-config.php
+    - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
     - sed -i "s/yourusernamehere/root/" wp-tests-config.php
     - sed -i "s/yourpasswordhere//" wp-tests-config.php
-    # set up database
-    - mysql -e 'CREATE DATABASE wordpress_test;' -uroot
-    # prepare for running the tests
-    - cd $plugin_dir/tests
+    # prepare for running bbPress' tests
+    - BBP_DEVELOP_DIR=$WP_DEVELOP_DIR/src/wp-content/plugins/bbpress
+    - cd $BBP_DEVELOP_DIR
+    # 'build' bbPress
+    - npm install -g grunt-cli
+    - npm install
+    - grunt build
 
-script: phpunit
+script: grunt travis
 
 notifications:
     email: false
@@ -51,4 +61,4 @@
         channels:
             - "irc.freenode.net#bbpress-dev"
         template:
-            - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"
\ No newline at end of file
+            - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"
