Skip to content

Commit

Permalink
Merge pull request #87 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 authored Aug 5, 2018
2 parents a7ce916 + 6e090d6 commit e0e0980
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 3,648 deletions.
59 changes: 35 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
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.

50 changes: 35 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"name": "wp-cli/package-command",
"description": "Lists, installs, and removes WP-CLI packages.",
"type": "wp-cli-package",
"description": "Lists, installs, and removes WP-CLI packages.",
"homepage": "https://github.com/wp-cli/package-command",
"support": {
"issues": "https://github.com/wp-cli/package-command/issues"
},
"license": "MIT",
"authors": [
{
Expand All @@ -14,20 +11,17 @@
"homepage": "https://runcommand.io"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"": "src/"
},
"files": [ "package-command.php" ]
},
"require": {
"composer/composer": "^1.2.0"
"composer/composer": "^1.2.0",
"wp-cli/wp-cli": "^2"
},
"require-dev": {
"behat/behat": "~2.5",
"wp-cli/wp-cli": "^1.5"
"wp-cli/wp-cli-tests": "^0",
"wp-cli/scaffold-command": "^1.2"
},
"config": {
"sort-packages": true,
"process-timeout": 7200
},
"extra": {
"branch-alias": {
Expand All @@ -42,5 +36,31 @@
"package update",
"package uninstall"
]
},
"autoload": {
"psr-4": {
"": "src/"
},
"files": [
"package-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/package-command/issues"
}
}
Loading

0 comments on commit e0e0980

Please sign in to comment.