Skip to content

Commit

Permalink
Merge pull request #84 from buddypress/scaffold
Browse files Browse the repository at this point in the history
BuddyPress specific scaffold command
  • Loading branch information
renatonascalves authored Sep 7, 2020
2 parents 44af989 + e5675cf commit c24a8e3
Show file tree
Hide file tree
Showing 13 changed files with 585 additions and 285 deletions.
70 changes: 43 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,42 @@
os: linux
# Travis CI (MIT License) configuration file for the BP-REST
# @link https://travis-ci.org/

# Setting dist.
dist: xenial

# Setting OS.
os: linux

# Declare project language.
# @link http://about.travis-ci.org/docs/user/languages/php/
language: php
php: 7.4

# Setting services.
services:
- mysql

notifications:
email:
on_success: never
on_failure: change

branches:
only:
- master
- main

cache:
directories:
- vendor
- $HOME/.composer/cache

# Git clone depth.
git:
depth: 1
quiet: true

env:
global:
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"

before_install:
- |
# 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
else
echo "xdebug.ini does not exist"
fi
- |
# Raise PHP memory limit to 2048MB
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer validate

install:
- composer install
- composer prepare-tests

script:
- composer behat || composer behat-rerun

jobs:
fast_finish: true
include:
- stage: sniff
script:
Expand All @@ -70,3 +61,28 @@ jobs:
- stage: test
php: 5.6
env: WP_VERSION=latest

before_install:
- |
# Turn off Xdebug. See https://core.trac.wordpress.org/changeset/40138.
phpenv config-rm xdebug.ini || echo "Xdebug not available"
- |
# Raise PHP memory limit to 2048MB
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- |
# Validate composer
composer validate
install:
- composer install
- composer prepare-tests

script:
- composer behat || composer behat-rerun

# Receive notifications for build results.
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
notifications:
email: false
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* We made sure all Behat tests were passing correctly
* We fixed several minor bugs in several commands
* We are making the use of `wp-cli/wp-cli-tests` for all tests (phpcs, behat, etc).
* Improved .travis.yml config
* Removed PHP 5.4 support from Travis
* Support to PHP 5.6+ added
* Improved the readme documentation
Expand All @@ -20,7 +21,8 @@
* New commands:
* `wp bp group meta` - Used to manage Group Meta (custom fields).
* `wp bp activity meta` - Used to manage Activity Meta (custom fields).
* `wp bp tool signup false` - Used to (de)activate the Signup feature.
* `wp bp tool signup` - Used to (de)activate the Signup feature.
* `wp bp scaffold tests` - Used to scaffold BuddyPress specific testing code for plugins.

### 1.8.0

Expand Down
41 changes: 22 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"buddypress",
"community",
"wordpress",
"bp"
"bp",
"wp"
],
"authors": [
{
Expand Down Expand Up @@ -60,24 +61,26 @@
"extra": {
"bundled": true,
"commands": [
"bp",
"bp activity",
"bp activity favorite",
"bp group",
"bp group meta",
"bp group member",
"bp group invite",
"bp message",
"bp email",
"bp component",
"bp member",
"bp notification",
"bp tool",
"bp signup",
"bp xprofile",
"bp xprofile field",
"bp xprofile group",
"bp xprofile data"
"wp bp",
"wp bp activity",
"wp bp activity meta",
"wp bp activity favorite",
"wp bp group",
"wp bp group meta",
"wp bp group member",
"wp bp group invite",
"wp bp message",
"wp bp email",
"wp bp component",
"wp bp member",
"wp bp notification",
"wp bp tool",
"wp bp signup",
"wp bp xprofile",
"wp bp xprofile field",
"wp bp xprofile group",
"wp bp xprofile data",
"wp bp scaffold"
]
}
}
Loading

0 comments on commit c24a8e3

Please sign in to comment.