New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt package for framework v2 #110

Merged
merged 6 commits into from Aug 4, 2018
Next

Adapt package for framework v2

  • Loading branch information...
schlessera committed Aug 4, 2018
commit 3322e2844d7a6bbbf9ef76173c5ee392168d9306
View
@@ -2,6 +2,7 @@ sudo: false
dist: trusty
language: php
php: 7.2
notifications:
email:
@@ -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:
@@ -50,14 +33,41 @@ 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
env: WP_VERSION=latest

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View
@@ -22,10 +22,11 @@
},
"files": [ "db-command.php" ]
},
"require": {},
"require": {
"wp-cli/wp-cli": "^2"
},
"require-dev": {
"behat/behat": "~2.5",
"wp-cli/wp-cli": "^1.5"
"wp-cli/wp-cli-tests": "^0"
},
"extra": {
"branch-alias": {
@@ -50,5 +51,18 @@
"db size",
"db columns"
]
},
"scripts": {
"lint": "run-linter-tests",
"phpcs": "run-phpcs-tests",
"phpunit": "run-php-unit-tests",
"behat": "run-behat-tests",
"prepare-tests": "install-package-tests",
"test": [
"@lint",
"@phpcs",
"@phpunit",
"@behat"
]
}
}
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.