Index: .travis.yml
===================================================================
--- .travis.yml	(revision 5296)
+++ .travis.yml	(working copy)
@@ -1,5 +1,9 @@
+# Travis CI Configuration File
+
+# Tell Travis CI we're using PHP
 language: php
 
+# PHP version used in first build configuration.
 php:
     - 5.2
     - 5.3
@@ -6,43 +10,40 @@
     - 5.4
     - 5.5
 
+# WordPress versions 3.7.x and above as 'develop' repo
 env:
     - WP_VERSION=master WP_MULTISITE=0
-    - WP_VERSION=3.8 WP_MULTISITE=0
+    - WP_VERSION=3.8.1 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.8.1 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
 
 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 git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
+    - mv $TRAVIS_BUILD_DIR /tmp/wordpress/src/wp-content/plugins/bbpress
+    - cd $WP_DEVELOP_DIR
+    - git checkout $WP_VERSION
+    # 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
Index: Gruntfile.js
===================================================================
--- Gruntfile.js	(revision 5296)
+++ Gruntfile.js	(working copy)
@@ -290,6 +290,8 @@
 
 	grunt.registerTask( 'jstest', 'Runs all javascript tasks.', [ 'jsvalidate', 'jshint' ] );
 
+	grunt.registerTask('travis', ['phpunit']);
+
 	// Default task.
 	grunt.registerTask( 'default', [ 'build' ] );
 
