Skip to content

Commit b2757d1

Browse files
committed
Adapt package for framework v2
1 parent d46abf7 commit b2757d1

File tree

3 files changed

+59
-56
lines changed

3 files changed

+59
-56
lines changed

.travis.yml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,72 @@ sudo: false
22
dist: trusty
33

44
language: php
5-
php: 7.1
5+
php: 7.2
6+
7+
notifications:
8+
email:
9+
on_success: never
10+
on_failure: change
11+
12+
branches:
13+
only:
14+
- master
15+
16+
cache:
17+
directories:
18+
- $HOME/.composer/cache
619

720
env:
821
global:
9-
- WP_CLI_BIN_DIR=/tmp/wp-cli-phar
22+
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
23+
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
24+
25+
before_install:
26+
- |
27+
# Remove Xdebug for a huge performance increase:
28+
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
29+
phpenv config-rm xdebug.ini
30+
else
31+
echo "xdebug.ini does not exist"
32+
fi
33+
- |
34+
# Raise PHP memory limit to 2048MB
35+
echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
36+
- composer validate
1037

11-
before_script:
12-
- export PATH="$HOME/.composer/vendor/bin:$PATH"
13-
- ./ci/prepare.sh
38+
install:
39+
- composer install
40+
- composer prepare-tests
41+
42+
script:
43+
- composer phpunit
44+
- composer behat
1445

1546
jobs:
1647
include:
1748
- stage: sniff
18-
script: composer lint && composer phpcs
49+
script:
50+
- composer lint
51+
- composer phpcs
1952
env: BUILD=sniff
2053
- stage: test
21-
script: composer prepare-tests && composer phpunit && composer behat
2254
php: 7.2
2355
env: WP_VERSION=latest
2456
- stage: test
25-
script: composer prepare-tests && composer phpunit && composer behat
2657
php: 7.1
2758
env: WP_VERSION=latest
2859
- stage: test
29-
script: composer prepare-tests && composer phpunit && composer behat
3060
php: 7.0
3161
env: WP_VERSION=latest
3262
- stage: test
33-
script: composer prepare-tests && composer phpunit && composer behat
3463
php: 5.6
3564
env: WP_VERSION=latest
3665
- stage: test
37-
script: composer prepare-tests && composer phpunit && composer behat
38-
php: 5.6
39-
env: WP_VERSION=trunk
40-
- stage: test
41-
script: composer prepare-tests && composer phpunit && composer behat
4266
php: 5.6
43-
env: WP_VERSION=latest BUILD=git WP_CLI_BIN_DIR=''
67+
env: WP_VERSION=3.7.11
4468
- stage: test
45-
script: composer prepare-tests && composer phpunit && composer behat
4669
php: 5.6
47-
env: WP_VERSION=3.7.11
70+
env: WP_VERSION=trunk
4871
- stage: test
49-
script: composer prepare-tests && composer phpunit && composer behat
5072
php: 5.4
51-
dist: precise
52-
env: WP_VERSION=3.7.11
53-
- stage: deploy
54-
env: DEPLOY_BRANCH=master
55-
script: ./ci/deploy.sh
56-
57-
cache:
58-
directories:
59-
- $HOME/.composer/cache
60-
61-
branches:
62-
only:
63-
- master
64-
- /^release-.+$/
65-
66-
notifications:
67-
email:
68-
on_success: never
69-
on_failure: change
73+
env: WP_VERSION=latest

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"wp-cli/shell-command": "^1.0",
4747
"wp-cli/super-admin-command": "^1.0",
4848
"wp-cli/widget-command": "^1.0",
49-
"wp-cli/wp-cli": "dev-master"
49+
"wp-cli/wp-cli": "^2"
5050
},
5151
"require-dev": {
5252
"roave/security-advisories": "dev-master",
53-
"wp-cli/wp-cli-tests": "dev-master"
53+
"wp-cli/wp-cli-tests": "^0"
5454
},
5555
"repositories": [
5656
{
@@ -75,7 +75,8 @@
7575
"@phpcs",
7676
"@phpunit",
7777
"@behat"
78-
]
78+
],
79+
"placeholder": "value"
7980
},
8081
"extra": {
8182
"branch-alias": {

composer.lock

Lines changed: 13 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)