Update Travis infrastructure to latest wp-cli
Globalize $wp_query before the plugin is loaded

$wp_query isn't properly globalized in wp-settings.php and when WP is
loaded in a function (unit tests case), the global is missing.

See https://core.trac.wordpress.org/ticket/26867 for a permanent fix.