Skip to content

Commit 8a93694

Browse files
committed
comvert to v2
1 parent f49b9ab commit 8a93694

File tree

15 files changed

+162
-2150
lines changed

15 files changed

+162
-2150
lines changed

.travis.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
sudo: false
2+
dist: trusty
3+
4+
language: php
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
19+
20+
env:
21+
global:
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
37+
38+
install:
39+
- composer install
40+
- composer prepare-tests
41+
42+
script:
43+
- composer phpunit
44+
- composer behat
45+
46+
jobs:
47+
include:
48+
- stage: sniff
49+
script:
50+
- composer lint
51+
- composer phpcs
52+
env: BUILD=sniff
53+
- stage: test
54+
php: 7.2
55+
env: WP_VERSION=latest
56+
- stage: test
57+
php: 7.1
58+
env: WP_VERSION=latest
59+
- stage: test
60+
php: 7.0
61+
env: WP_VERSION=latest
62+
- stage: test
63+
php: 5.6
64+
env: WP_VERSION=latest
65+
- stage: test
66+
php: 5.6
67+
env: WP_VERSION=3.7.11
68+
- stage: test
69+
php: 5.6
70+
env: WP_VERSION=trunk
71+
- stage: test
72+
php: 5.4
73+
env: WP_VERSION=latest

bin/install-package-tests.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

bin/test.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

composer.json

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wp-cli/dist-archive-command",
3-
"description": "Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file.",
43
"type": "wp-cli-package",
4+
"description": "Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file.",
55
"homepage": "https://runcommand.io/wp/dist-archive/",
66
"license": "MIT",
77
"authors": [
@@ -11,20 +11,39 @@
1111
"homepage": "https://runcommand.io"
1212
}
1313
],
14-
"minimum-stability": "dev",
15-
"autoload": {
16-
"psr-4": {
17-
"": "src/"
18-
},
19-
"files": [ "dist-archive-command.php" ]
14+
"require": {
15+
"php": ">=5.4",
16+
"wp-cli/wp-cli": "^2"
2017
},
21-
"require": {},
2218
"require-dev": {
23-
"behat/behat": "~2.5"
19+
"behat/behat": "~2.5",
20+
"wp-cli/wp-cli-tests": "^2"
2421
},
2522
"extra": {
2623
"commands": [
2724
"dist-archive"
2825
]
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"": "src/"
30+
},
31+
"files": [
32+
"dist-archive-command.php"
33+
]
34+
},
35+
"minimum-stability": "dev",
36+
"scripts": {
37+
"behat": "run-behat-tests",
38+
"lint": "run-linter-tests",
39+
"phpcs": "run-phpcs-tests",
40+
"phpunit": "run-php-unit-tests",
41+
"prepare-tests": "install-package-tests",
42+
"test": [
43+
"@lint",
44+
"@phpcs",
45+
"@phpunit",
46+
"@behat"
47+
]
2948
}
3049
}

0 commit comments

Comments
 (0)