forked from buddyboss/buddyboss-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3,373 changed files
with
482,265 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{*.txt}] | ||
end_of_line = crlf |
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,24 @@ | ||
.DS_Store | ||
_docs | ||
phpunit.xml | ||
.idea | ||
*.netbeans.xml | ||
|
||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
src/vendor | ||
vendor | ||
|
||
node_modules | ||
npm-debug.log | ||
*.zip |
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,3 @@ | ||
// 3rd party libraries | ||
src/bp-core/js/vendor/**/* | ||
src/bp-messages/js/autocomplete/* |
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,26 @@ | ||
{ | ||
"boss": true, | ||
"curly": true, | ||
"eqeqeq": false, | ||
"eqnull": true, | ||
"expr": true, | ||
"immed": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": true, | ||
"esversion": 5, | ||
|
||
"browser": true, | ||
"devel": true, | ||
"maxerr": 99999999, | ||
|
||
"globals": { | ||
"_": false, | ||
"ajaxurl": false, | ||
"Backbone": false, | ||
"jQuery": false, | ||
"wp": false, | ||
"BP_Nouveau": false | ||
} | ||
} |
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,128 @@ | ||
# Travis CI Configuration File | ||
|
||
# Use new Travis container-based infrastructure | ||
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/ | ||
sudo: false | ||
|
||
language: php | ||
|
||
dist: trusty | ||
|
||
cache: | ||
apt: true | ||
directories: | ||
- $HOME/.composer/cache/files | ||
- $HOME/.npm | ||
- /tmp/node | ||
|
||
git: | ||
depth: 10 | ||
|
||
php: | ||
- 7.2 | ||
- 5.6 | ||
|
||
# WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and | ||
# x.y mirrors the latest from the x.y branch | ||
env: | ||
- WP_VERSION=master BP_TRAVISCI=travis:phpunit | ||
- WP_VERSION=4.9 BP_TRAVISCI=travis:phpunit | ||
- WP_VERSION=4.8 BP_TRAVISCI=travis:phpunit | ||
- WP_VERSION=4.7 BP_TRAVISCI=travis:phpunit | ||
- WP_VERSION=4.6 BP_TRAVISCI=travis:phpunit | ||
- WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit | ||
|
||
matrix: | ||
include: | ||
- php: 7.2 | ||
env: WP_VERSION=master BP_TRAVISCI=travis:grunt | ||
- php: 5.3 | ||
env: WP_VERSION=master BP_TRAVISCI=travis:phpunit | ||
dist: precise | ||
- php: 5.3 | ||
env: WP_VERSION=4.8 BP_TRAVISCI=travis:phpunit | ||
dist: precise | ||
- php: 5.3 | ||
env: WP_VERSION=4.7 BP_TRAVISCI=travis:phpunit | ||
dist: precise | ||
- php: 5.3 | ||
env: WP_VERSION=4.6 BP_TRAVISCI=travis:phpunit | ||
dist: precise | ||
- php: 5.3 | ||
env: WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit | ||
dist: precise | ||
exclude: | ||
- php: 7.2 | ||
env: WP_VERSION=4.6 BP_TRAVISCI=travis:phpunit | ||
- php: 7.2 | ||
env: WP_VERSION=4.5 BP_TRAVISCI=travis:phpunit | ||
|
||
# before_install: Failures in this section will result in build status 'errored' | ||
before_install: | ||
# set up WP install | ||
- export WP_DEVELOP_DIR=/tmp/wordpress/ | ||
- mkdir -p $WP_DEVELOP_DIR | ||
- git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR | ||
- plugin_slug=$(basename $(pwd)) | ||
- plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug | ||
- cd .. | ||
- mv $plugin_slug $plugin_dir | ||
- | | ||
# Remove Xdebug for a huge performance increase: | ||
if [[ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]]; then | ||
phpenv config-rm xdebug.ini | ||
fi | ||
# set up tests config | ||
- cd $WP_DEVELOP_DIR | ||
- echo $WP_DEVELOP_DIR | ||
- 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 | ||
|
||
# set up database | ||
- mysql -e 'CREATE DATABASE wordpress_test;' -uroot | ||
|
||
# prepare for running the tests | ||
- cd $plugin_dir | ||
|
||
# setup NodeJS version using NVM | ||
- export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- node --version | ||
- nvm install 6 | ||
- node --version | ||
- npm install -g grunt-cli | ||
- npm --version | ||
- mysql --version | ||
- phpenv versions | ||
- php --version | ||
- php -m | ||
- phpunit --version | ||
- curl --version | ||
- grunt --version | ||
- git --version | ||
- svn --version | ||
|
||
# before_script: Failures in this section will result in build status 'errored' | ||
before_script: | ||
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then composer global require --dev phpunit/phpunit ^4; fi | ||
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then composer global require --dev phpunit/phpunit ^5; fi | ||
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then composer global require --dev phpunit/phpunit ^6; fi | ||
- mkdir -p /tmp/node/node_modules | ||
- ln -s /tmp/node/node_modules $plugin_dir/node_modules | ||
- npm install | ||
|
||
# Run tests | ||
script: grunt $BP_TRAVISCI | ||
|
||
notifications: | ||
email: false | ||
|
||
irc: | ||
channels: | ||
- secure: "Z+gAlyOafrw0Xg294np+7IpqOKTsswGjAWyOZsbzT7Xo8uY1nmz8tTuU50Gpo8jo5HQqG9G0QgI3zB3Cxy3M5dF+J5oLl1lBz1zL0mtHiq1HoXi2cbVnGCCpxtMvYII6UmPUGAg8zvNUQol+cw1jb3PzLwEDfGcDH64o/Z3j8Gg=" | ||
template: | ||
- "Build %{build_number} (%{branch} - %{commit}): %{message} %{build_url}" | ||
slack: | ||
secure: JQT+HWoVhLzoG00HmJscYZO+Gy7ywnIlrUbCaI7DxFdFOIkKxsTLLq9cKE4y3VqgZAARTOKjP1eQ7a5OEg1vT11Ow+rB7iUAMNmITxXO4feTOx1i2673xRNBro/SZMhlLd7DY2erbMDZaG9hBQB4xLXRYOvP29pLxf5zTSyZMyE= |
Oops, something went wrong.