Skip to content

Commit ba2281a

Browse files
authored
Merge pull request #1 from wp-cli/rip-out-framework
Rip out Framework and Tests code
2 parents b00cdfa + 188eea4 commit ba2281a

File tree

145 files changed

+1447
-22588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1447
-22588
lines changed

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,39 @@ before_script:
1515
jobs:
1616
include:
1717
- stage: sniff
18-
script: ./ci/sniff.sh
18+
script: composer lint && composer phpcs
1919
env: BUILD=sniff
2020
- stage: test
21-
script: ./ci/test.sh
21+
script: composer prepare-tests && composer phpunit && composer behat
2222
php: 7.2
2323
env: WP_VERSION=latest
2424
- stage: test
25-
script: ./ci/test.sh
25+
script: composer prepare-tests && composer phpunit && composer behat
2626
php: 7.1
2727
env: WP_VERSION=latest
2828
- stage: test
29-
script: ./ci/test.sh
29+
script: composer prepare-tests && composer phpunit && composer behat
3030
php: 7.0
3131
env: WP_VERSION=latest
3232
- stage: test
33-
script: ./ci/test.sh
33+
script: composer prepare-tests && composer phpunit && composer behat
3434
php: 5.6
3535
env: WP_VERSION=latest
3636
- stage: test
37-
script: ./ci/test.sh
37+
script: composer prepare-tests && composer phpunit && composer behat
3838
php: 5.6
3939
env: WP_VERSION=trunk
4040
- stage: test
41-
script: ./ci/test.sh
41+
script: composer prepare-tests && composer phpunit && composer behat
4242
php: 5.6
4343
env: WP_VERSION=latest BUILD=git WP_CLI_BIN_DIR=''
4444
- stage: test
45-
script: ./ci/test.sh
45+
script: composer prepare-tests && composer phpunit && composer behat
4646
php: 5.6
4747
env: WP_VERSION=3.7.11
4848
- stage: test
49-
script: ./ci/test.sh
50-
php: 5.3
49+
script: composer prepare-tests && composer phpunit && composer behat
50+
php: 5.4
5151
dist: precise
5252
env: WP_VERSION=3.7.11
5353
- stage: deploy

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Ongoing maintenance is <a href="https://make.wordpress.org/cli/2017/04/03/new-co
99

1010
The current stable release is [version 1.5.1](https://make.wordpress.org/cli/2018/04/21/version-1-5-1-released/). For announcements, follow [@wpcli on Twitter](https://twitter.com/wpcli) or [sign up for email updates](https://make.wordpress.org/cli/subscribe/). [Check out the roadmap](https://make.wordpress.org/cli/handbook/roadmap/) for an overview of what's planned for upcoming releases.
1111

12-
[![Build Status](https://travis-ci.org/wp-cli/wp-cli.svg?branch=master)](https://travis-ci.org/wp-cli/wp-cli) [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/wp-cli/wp-cli.svg)](https://isitmaintained.com/project/wp-cli/wp-cli "Average time to resolve an issue") [![Percentage of issues still open](https://isitmaintained.com/badge/open/wp-cli/wp-cli.svg)](https://isitmaintained.com/project/wp-cli/wp-cli "Percentage of issues still open")
12+
[![Build Status](https://travis-ci.org/wp-cli/wp-cli.svg?branch=master)](https://travis-ci.org/wp-cli/wp-cli) [![Dependency Status](https://gemnasium.com/badges/github.com/wp-cli/wp-cli.svg)](https://gemnasium.com/github.com/wp-cli/wp-cli) [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/wp-cli/wp-cli.svg)](https://isitmaintained.com/project/wp-cli/wp-cli "Average time to resolve an issue") [![Percentage of issues still open](https://isitmaintained.com/badge/open/wp-cli/wp-cli.svg)](https://isitmaintained.com/project/wp-cli/wp-cli "Percentage of issues still open")
1313

1414
Quick links: [Using](#using) &#124; [Installing](#installing) &#124; [Support](#support) &#124; [Extending](#extending) &#124; [Contributing](#contributing) &#124; [Credits](#credits)
1515

@@ -96,7 +96,7 @@ Want to live life on the edge? Run `wp cli update --nightly` to use the latest n
9696

9797
### Tab completions
9898

99-
WP-CLI also comes with a tab completion script for Bash and ZSH. Just download [wp-completion.bash](https://raw.githubusercontent.com/wp-cli/wp-cli/v1.5.1/utils/wp-completion.bash) and source it from `~/.bash_profile`:
99+
WP-CLI also comes with a tab completion script for Bash and ZSH. Just download [wp-completion.bash](https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash) and source it from `~/.bash_profile`:
100100

101101
```bash
102102
source /FULL/PATH/TO/wp-completion.bash
@@ -181,7 +181,7 @@ Read through our [contributing guidelines in the handbook](https://make.wordpres
181181

182182
## Leadership
183183

184-
WP-CLI has one project maintainer: [schlessera](http://github.com/schlessera).
184+
WP-CLI has two project maintainers: [danielbachhuber](https://github.com/danielbachhuber) and [schlessera](http://github.com/schlessera).
185185

186186
On occasion, we [grant write access to contributors](https://make.wordpress.org/cli/handbook/committers-credo/) who have demonstrated, over a period of time, that they are capable and invested in moving the project forward.
187187

bin/wp

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

bin/wp.bat

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

ci/behat-tags.php

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

ci/deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ "false" != "$TRAVIS_PULL_REQUEST" ]]; then
77
exit
88
fi
99

10-
if [ -z "$DEPLOY_BRANCH" ]; then
10+
if [ -z $DEPLOY_BRANCH ]; then
1111
echo "Skipping deployment as DEPLOY_BRANCH is not set"
1212
exit
1313
fi
@@ -21,7 +21,7 @@ fi
2121
set +x
2222

2323
# Get the encrypted private key from the repo settings
24-
echo "$WP_CLI_REPO_DEPLOY_KEY" | base64 --decode > ~/.ssh/id_rsa
24+
echo $WP_CLI_REPO_DEPLOY_KEY | base64 --decode > ~/.ssh/id_rsa
2525
chmod 600 ~/.ssh/id_rsa
2626

2727
# anyone can read the build log, so it MUST NOT contain any sensitive data
@@ -32,7 +32,7 @@ echo "|1|qPmmP7LVZ7Qbpk7AylmkfR0FApQ=|WUy1WS3F4qcr3R5Sc728778goPw= ssh-rsa AAAAB
3232

3333
git clone [email protected]:wp-cli/builds.git
3434
mv PHAR_BUILD_VERSION builds/phar/NIGHTLY_VERSION
35-
cd builds || exit
35+
cd builds
3636

3737
git config user.name "Travis CI"
3838
git config user.email "[email protected]"

ci/prepare.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -ex
77
WP_CLI_BIN_DIR=${WP_CLI_BIN_DIR-/tmp/wp-cli-phar}
88

99
# Disable XDebug to speed up Composer and test suites.
10-
if [ -f ~/.phpenv/versions/"$(phpenv version-name)"/etc/conf.d/xdebug.ini ]; then
10+
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
1111
phpenv config-rm xdebug.ini
1212
else
1313
echo "xdebug.ini does not exist"
@@ -26,15 +26,15 @@ fi
2626
# the Behat test suite will pick up the executable found in $WP_CLI_BIN_DIR
2727
if [[ $BUILD == 'git' || $BUILD == 'sniff' ]]
2828
then
29-
echo "$CLI_VERSION" > VERSION
29+
echo $CLI_VERSION > VERSION
3030
else
31-
mkdir -p "$WP_CLI_BIN_DIR"
32-
php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet --version="$CLI_VERSION"
33-
mv wp-cli.phar "$WP_CLI_BIN_DIR"/wp
34-
chmod +x "$WP_CLI_BIN_DIR"/wp
31+
mkdir -p $WP_CLI_BIN_DIR
32+
php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet --version=$CLI_VERSION
33+
mv wp-cli.phar $WP_CLI_BIN_DIR/wp
34+
chmod +x $WP_CLI_BIN_DIR/wp
3535
fi
3636

37-
echo "$CLI_VERSION" > PHAR_BUILD_VERSION
37+
echo $CLI_VERSION > PHAR_BUILD_VERSION
3838

3939
mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
4040
mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot

ci/sniff.sh

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

ci/test.sh

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

0 commit comments

Comments
 (0)