Index: .travis.yml
===================================================================
--- .travis.yml	(revision 5385)
+++ .travis.yml	(working copy)
@@ -1,54 +1,66 @@
-language: php
-
-php:
-    - 5.2
-    - 5.3
-    - 5.4
-    - 5.5
-
-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
-
-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
-    - 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/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
-
-script: phpunit
-
-notifications:
-    email: false
-
-    irc:
-        channels:
-            - "irc.freenode.net#bbpress-dev"
-        template:
-            - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"
\ No newline at end of file
+# 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
+    - 5.4
+    - 5.5
+
+# WordPress versions uses Git 'develop' repo branches
+env:
+    - WP_VERSION=master # Git equivalent of SVN /trunk
+    - WP_VERSION=3.9    # Includes latest 3.9.x release
+    - WP_VERSION=3.8    # Includes latest 3.8.x release
+    - WP_VERSION=3.7    # Includes latest 3.7.x release
+
+# Build matrix options
+matrix:
+  include:
+    - php: 5.6
+      env: WP_VERSION=master
+    - php: hhvm
+      env: WP_VERSION=master
+  allow_failures:
+    - php: 5.6
+    - php: hhvm
+  fast_finish: true
+
+# Before install, failures in this section will result in build status 'errored'
+before_install:
+    # 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=1 --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/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
+    - sed -i "s/yourusernamehere/root/" wp-tests-config.php
+    - sed -i "s/yourpasswordhere//" wp-tests-config.php
+    - if [ "$TRAVIS_PHP_VERSION" == "5.5" ] && [ "$WP_VERSION" == "3.7" ]; then sed -i "s:define( 'WP_DEBUG://define( 'WP_DEBUG:" wp-tests-config.php; fi;
+    # prepare for running bbPress' tests
+    - BBP_DEVELOP_DIR=$WP_DEVELOP_DIR/src/wp-content/plugins/bbpress
+    - cd $BBP_DEVELOP_DIR
+    - npm install -g grunt-cli
+
+# Before script, failures in this section will result in build status 'failed'
+before_script:
+  - npm install
+  - grunt build
+
+script: grunt travis
+
+notifications:
+    email: false
+    irc:
+      channels:
+        - "irc.freenode.net#bbpress-dev"
+      template:
+        - "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}"
Index: Gruntfile.js
===================================================================
--- Gruntfile.js	(revision 5385)
+++ Gruntfile.js	(working copy)
@@ -333,6 +333,9 @@
 
 	grunt.registerTask( 'jstest', 'Runs all javascript tasks.', [ 'jsvalidate', 'jshint' ] );
 
+	// Travis CI Task
+	grunt.registerTask( 'travis', ['jshint', 'phpunit'] );
+
 	// Patch task.
 	grunt.renameTask('patch_wordpress', 'patch');
 
