Skip to content

Commit

Permalink
Merge pull request #49 from wojsmol/tov2
Browse files Browse the repository at this point in the history
convert to v2
  • Loading branch information
schlessera authored Aug 14, 2018
2 parents 6197477 + 348a567 commit 612a8a9
Show file tree
Hide file tree
Showing 15 changed files with 142 additions and 2,051 deletions.
66 changes: 44 additions & 22 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 @@ -14,38 +15,59 @@ branches:

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

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

matrix:
include:
- 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=trunk
- php: 5.3
dist: precise
env: WP_VERSION=latest

before_install:
- phpenv config-rm xdebug.ini
- |
# 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 require wp-cli/wp-cli:dev-master
- composer install
- bash bin/install-package-tests.sh

before_script:
- composer validate
- composer prepare-tests

script:
- behat --format progress --strict
- 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
10 changes: 0 additions & 10 deletions bin/install-package-tests.sh

This file was deleted.

26 changes: 24 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,32 @@
"files": [ "find-command.php" ]
},
"require": {
"wp-cli/wp-cli": "*"
"php": ">=5.4",
"wp-cli/wp-cli": "2"
},
"require-dev": {
"behat/behat": "~2.5"
"behat/behat": "~2.5",
"wp-cli/wp-cli-tests": "2"
},
"config": {
"platform": {
"php": "5.4"
},
"process-timeout": 7200,
"sort-packages": true
},
"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"
]
},
"extra": {
"branch-alias": {
Expand Down
Loading

0 comments on commit 612a8a9

Please sign in to comment.