Skip to content

Commit c183d70

Browse files
Add WP-CLI as a dependency, and composer install in one step
1 parent 0284665 commit c183d70

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ cache:
1717

1818
env:
1919
global:
20-
- PATH="$HOME/.composer/vendor/bin:$PATH"
21-
- WP_CLI_BIN_DIR="$HOME/.composer/vendor/bin"
20+
- PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
21+
- WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
2222

2323
matrix:
2424
include:
@@ -33,11 +33,11 @@ matrix:
3333
- php: 5.3
3434
env: WP_VERSION=latest
3535

36-
install:
36+
before_install:
3737
- phpenv config-rm xdebug.ini
38-
- composer global require wp-cli/wp-cli:dev-master
39-
- composer global require behat/behat:~2.5
40-
- composer install --no-dev
38+
39+
install:
40+
- composer install
4141
- bash bin/install-package-tests.sh
4242

4343
before_script:

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"autoload": {
1919
"files": [ "command.php" ]
2020
},
21-
"require": {},
21+
"require": {
22+
"wp-cli/wp-cli": "~1.0.0"
23+
},
2224
"require-dev": {
2325
"behat/behat": "~2.5"
2426
},

0 commit comments

Comments
 (0)