Skip to content

Commit be4ac07

Browse files
committed
Merge branch 'master' into 2019-03-20_diggy_wp-cli-db-fix-type-classname
2 parents ec91ee3 + dd5f253 commit be4ac07

35 files changed

+2078
-2993
lines changed

.distignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
.travis.yml
77
behat.yml
88
circle.yml
9+
phpcs.xml.dist
10+
phpunit.xml.dist
911
bin/
1012
features/
1113
utils/

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @wp-cli/committers

.github/PULL_REQUEST_TEMPLATE

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
Thanks for submitting a pull request!
44

5+
Please review our contributing guidelines if you haven't recently: https://make.wordpress.org/cli/handbook/contributing/#creating-a-pull-request
6+
57
Here's an overview to our process:
68

7-
1. One of the project committers will soon provide a code review.
8-
2. You are expected to address the code review comments in a timely manner.
9+
1. One of the project committers will soon provide a code review: https://make.wordpress.org/cli/handbook/code-review/
10+
2. You are expected to address the code review comments in a timely manner (if we don't hear from you in two weeks, we'll consider your pull request abandoned).
911
3. Please make sure to include functional tests for your changes.
1012
4. The reviewing committer will merge your pull request as soon as it passes code review (and provided it fits within the scope of the project).
1113

.github/move.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Configuration for move-issues - https://github.com/dessant/move-issues
2+
3+
# Repository to extend settings from
4+
_extends: wp-cli/wp-cli
5+
6+
# Delete the command comment when it contains no other content
7+
# deleteCommand: true
8+
9+
# Close the source issue after moving
10+
# closeSourceIssue: true
11+
12+
# Lock the source issue after moving
13+
# lockSourceIssue: false
14+
15+
# Mention issue and comment authors
16+
# mentionAuthors: true
17+
18+
# Preserve mentions in the issue content
19+
# keepContentMentions: true

.github/settings.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Used by Probot Settings: https://probot.github.io/apps/settings/
2+
repository:
3+
description: Performs basic database operations using credentials stored in wp-config.php.
4+
labels:
5+
- name: bug
6+
color: fc2929
7+
- name: scope:documentation
8+
color: 0e8a16
9+
- name: scope:testing
10+
color: 5319e7
11+
- name: good-first-issue
12+
color: eb6420
13+
- name: help-wanted
14+
color: 159818
15+
- name: maybelater
16+
color: c2e0c6
17+
- name: state:unconfirmed
18+
color: bfe5bf
19+
- name: state:unsupported
20+
color: bfe5bf
21+
- name: wontfix
22+
color: c2e0c6
23+
- name: command:db
24+
color: c5def5
25+
- name: command:db-clean
26+
color: c5def5
27+
- name: command:db-create
28+
color: c5def5
29+
- name: command:db-drop
30+
color: c5def5
31+
- name: command:db-reset
32+
color: c5def5
33+
- name: command:db-check
34+
color: c5def5
35+
- name: command:db-optimize
36+
color: c5def5
37+
- name: command:db-prefix
38+
color: c5def5
39+
- name: command:db-repair
40+
color: c5def5
41+
- name: command:db-cli
42+
color: c5def5
43+
- name: command:db-query
44+
color: c5def5
45+
- name: command:db-export
46+
color: c5def5
47+
- name: command:db-import
48+
color: c5def5
49+
- name: command:db-search
50+
color: c5def5
51+
- name: command:db-tables
52+
color: c5def5
53+
- name: command:db-size
54+
color: c5def5
55+
- name: command:db-columns
56+
color: c5def5

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
.DS_Store
2+
.phpcs.xml
23
wp-cli.local.yml
34
node_modules/
45
vendor/
56
*.zip
67
*.tar.gz
78
.*.swp
89
composer.lock
10+
phpunit.xml
11+
phpcs.xml
12+
*.log

.travis.yml

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sudo: false
22
dist: trusty
33

44
language: php
5+
php: 7.2
56

67
notifications:
78
email:
@@ -14,40 +15,63 @@ branches:
1415

1516
cache:
1617
directories:
17-
- vendor
1818
- $HOME/.composer/cache
1919

2020
env:
2121
global:
2222
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
2323
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
2424

25-
matrix:
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 || composer behat-rerun
45+
46+
jobs:
2647
include:
27-
- php: 7.1
48+
- stage: sniff
49+
script:
50+
- composer lint
51+
- composer phpcs
52+
env: BUILD=sniff
53+
- stage: test
54+
php: 7.3
55+
env: WP_VERSION=latest
56+
- stage: test
57+
php: 7.2
58+
env: WP_VERSION=latest
59+
- stage: test
60+
php: 7.1
2861
env: WP_VERSION=latest
29-
- php: 7.0
62+
- stage: test
63+
php: 7.0
3064
env: WP_VERSION=latest
31-
- php: 5.6
65+
- stage: test
66+
php: 5.6
3267
env: WP_VERSION=latest
33-
- php: 5.6
68+
- stage: test
69+
php: 5.6
3470
env: WP_VERSION=3.7.11
35-
- php: 5.6
71+
- stage: test
72+
php: 5.6
3673
env: WP_VERSION=trunk
37-
- php: 5.3
74+
- stage: test
75+
php: 5.4
3876
dist: precise
39-
env: WP_VERSION=latest
40-
41-
before_install:
42-
- phpenv config-rm xdebug.ini
43-
44-
install:
45-
- composer require wp-cli/wp-cli:dev-master
46-
- composer install
47-
- bash bin/install-package-tests.sh
48-
49-
before_script:
50-
- composer validate
51-
52-
script:
53-
- bash bin/test.sh
77+
env: WP_VERSION=5.1

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (C) 2011-2017 WP-CLI Development Group (https://github.com/wp-cli/db-command/contributors)
3+
Copyright (C) 2011-2018 WP-CLI Development Group (https://github.com/wp-cli/db-command/contributors)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)