-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Automattic/master
Sync with upstream
- Loading branch information
Showing
387 changed files
with
155,808 additions
and
113,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/vendor/ | ||
.DS_Store | ||
.sass-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.git/ | ||
.gitignore | ||
.travis.yml | ||
readme.md | ||
tests/ | ||
_inc/lib/icalendar-reader.php | ||
modules/shortcodes/upcoming-events.php | ||
modules/widgets/upcoming-events.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,38 +3,54 @@ | |
# Tell Travis CI we're using PHP | ||
language: php | ||
|
||
# Versions of PHP to test against | ||
# PHP version used in first build configuration. | ||
php: | ||
- "5.2" | ||
- "5.3" | ||
- "5.4" | ||
- "5.5" | ||
|
||
# Specify versions of WordPress to test against | ||
# WP_VERSION = WordPress version number (use "master" for SVN trunk) | ||
# WP_MULTISITE = whether to test multisite (use either "0" or "1") | ||
# WordPress version used in first build configuration. | ||
env: | ||
- WP_VERSION=master WP_MULTISITE=0 | ||
- WP_VERSION=3.6 WP_MULTISITE=0 | ||
- WP_VERSION=3.5.2 WP_MULTISITE=0 | ||
# - WP_VERSION=3.4.2 WP_MULTISITE=0 | ||
# - WP_VERSION=3.3.3 WP_MULTISITE=0 | ||
# - WP_VERSION=3.2.1 WP_MULTISITE=0 | ||
- WP_VERSION=master WP_MULTISITE=1 | ||
- WP_VERSION=3.6 WP_MULTISITE=1 | ||
- WP_VERSION=3.5.2 WP_MULTISITE=1 | ||
# - WP_VERSION=3.4.2 WP_MULTISITE=1 | ||
# - WP_VERSION=3.3.3 WP_MULTISITE=1 | ||
# - WP_VERSION=3.2.1 WP_MULTISITE=1 | ||
|
||
# Grab the setup script and execute | ||
- WP_VERSION=master | ||
|
||
# Next we define our matrix of additional build configurations to test against. | ||
# The versions listed above will automatically create our first configuration, | ||
# so it doesn't need to be re-defined below. | ||
|
||
# WP_VERSION specifies the tag to use. The way these tests are configured to run | ||
# requires at least WordPress 3.8. Specify "master" to test against SVN trunk. | ||
|
||
# Note that Travis CI supports listing these above to automatically build a | ||
# matrix of configurations, but we're being nice here by manually building a | ||
# total of four configurations even though we're testing 4 versions of PHP | ||
# along with 2 versions of WordPress (which would build 8 configs otherwise). | ||
# This takes half as long to run while still providing adequate coverage. | ||
|
||
matrix: | ||
include: | ||
# - php: "5.3" | ||
# env: WP_VERSION=master | ||
# - php: "5.4" | ||
# env: WP_VERSION=3.8 | ||
# - php: "5.2" | ||
# env: WP_VERSION=3.8 | ||
|
||
# Clones WordPress and configures our testing environment. | ||
before_script: | ||
- wget https://raw.github.com/tierra/wordpress-plugin-tests/setup/setup.sh | ||
- source setup.sh | ||
- export PLUGIN_SLUG=$(basename $(pwd)) | ||
- git clone https://github.com/tierra/wordpress.git /tmp/wordpress | ||
# - git clone . "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" | ||
- cd .. | ||
- mv $PLUGIN_SLUG "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" | ||
- cd /tmp/wordpress | ||
- git checkout $WP_VERSION | ||
- mysql -e "CREATE DATABASE wordpress_tests;" -uroot | ||
- cp wp-tests-config-sample.php wp-tests-config.php | ||
- sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php | ||
- sed -i "s/yourusernamehere/travis/" wp-tests-config.php | ||
- sed -i "s/yourpasswordhere//" wp-tests-config.php | ||
- cd "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" | ||
|
||
script: phpunit | ||
|
||
# wordpress-plugin-tests specific config | ||
# Tells Travis CI not to run unit tests against the setup branch | ||
branches: | ||
except: | ||
- setup | ||
notifications: | ||
email: | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
/* | ||
* Placeholder to load 3rd party plugin tweaks until a legit system | ||
* is architected | ||
*/ | ||
|
||
require_once( 'buddypress.php' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
add_filter( 'bp_core_pre_avatar_handle_upload', 'blobphoto' ); | ||
function blobphoto( $bool ) { | ||
|
||
add_filter( 'jetpack_photon_skip_image', '__return_true' ); | ||
|
||
return $bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
173a28c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference: despite this commit appearing to be very large, it actually made no changes whatsoever relative to the previous revision (afd22d7) because all it did was marge an ancient revision from a month ago, with no resulting changes.