Skip to content

Commit

Permalink
Merge pull request #38 from wp-cli/adapt-for-v2
Browse files Browse the repository at this point in the history
Adapt package for framework v2
  • Loading branch information
schlessera committed Aug 4, 2018
2 parents be00c79 + 2c60118 commit a0c7270
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 3,497 deletions.
59 changes: 35 additions & 24 deletions .travis.yml
Expand Up @@ -2,6 +2,7 @@ sudo: false
dist: trusty

language: php
php: 7.2

notifications:
email:
Expand All @@ -21,24 +22,6 @@ env:
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"

matrix:
include:
- php: 7.2
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=3.7.11
- php: 5.6
env: WP_VERSION=trunk
- php: 5.3
dist: precise
env: WP_VERSION=latest

before_install:
- |
# Remove Xdebug for a huge performance increase:
Expand All @@ -50,14 +33,42 @@ before_install:
- |
# Raise PHP memory limit to 2048MB
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer validate

install:
- composer require wp-cli/wp-cli:dev-master
- composer install
- bash bin/install-package-tests.sh

before_script:
- composer validate
- composer prepare-tests

script:
- bash bin/test.sh
- composer phpunit
- composer behat

jobs:
include:
- stage: sniff
script:
- composer lint
- composer phpcs
env: BUILD=sniff
- stage: test
php: 7.2
env: WP_VERSION=latest
- stage: test
php: 7.1
env: WP_VERSION=latest
- stage: test
php: 7.0
env: WP_VERSION=latest
- stage: test
php: 5.6
env: WP_VERSION=latest
- stage: test
php: 5.6
env: WP_VERSION=3.7.11
- stage: test
php: 5.6
env: WP_VERSION=trunk
- stage: test
php: 5.4
dist: precise
env: WP_VERSION=latest
11 changes: 0 additions & 11 deletions bin/install-package-tests.sh

This file was deleted.

17 changes: 0 additions & 17 deletions bin/test.sh

This file was deleted.

51 changes: 35 additions & 16 deletions composer.json
@@ -1,32 +1,25 @@
{
"name": "wp-cli/embed-command",
"description": "Inspects oEmbed providers, clears embed cache, and more.",
"type": "wp-cli-package",
"description": "Inspects oEmbed providers, clears embed cache, and more.",
"homepage": "https://github.com/wp-cli/embed-command",
"support": {
"issues": "https://github.com/wp-cli/embed-command/issues"
},
"license": "MIT",
"authors": [
{
"name": "Pascal Birchler",
"homepage": "https://pascalbirchler.com/"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"WP_CLI\\Embeds\\": "src/"
},
"files": [
"embed-command.php"
]
"require": {
"wp-cli/wp-cli": "^2"
},
"require": {},
"require-dev": {
"behat/behat": "~2.5",
"wp-cli/wp-cli": "^1.5"
"wp-cli/entity-command": "^1.3",
"wp-cli/wp-cli-tests": "^0"
},
"config": {
"sort-packages": true,
"process-timeout": 7200
},
"extra": {
"branch-alias": {
Expand All @@ -46,5 +39,31 @@
"embed cache find",
"embed cache trigger"
]
},
"autoload": {
"psr-4": {
"WP_CLI\\Embeds\\": "src/"
},
"files": [
"embed-command.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"behat": "run-behat-tests",
"lint": "run-linter-tests",
"phpcs": "run-phpcs-tests",
"phpunit": "run-php-unit-tests",
"prepare-tests": "install-package-tests",
"test": [
"@lint",
"@phpcs",
"@phpunit",
"@behat"
]
},
"support": {
"issues": "https://github.com/wp-cli/embed-command/issues"
}
}

0 comments on commit a0c7270

Please sign in to comment.