Skip to content

Commit 1912489

Browse files
Use WP-CLI installed as dependency for Circle too
1 parent 08626b7 commit 1912489

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

circle.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ machine:
22
php:
33
version: 5.6.22
44
environment:
5-
PATH: "$HOME/.composer/vendor/bin:$PATH"
6-
WP_CLI_BIN_DIR: "$HOME/.composer/vendor/bin"
5+
PATH: "$HOME/$CIRCLE_PROJECT_REPONAME/vendor/bin:$PATH"
6+
WP_CLI_BIN_DIR: "$HOME/$CIRCLE_PROJECT_REPONAME/vendor/bin"
77

88
dependencies:
99
cache_directories:
10-
- ~/.composer/cache
10+
- $HOME/.composer/cache
1111
pre:
1212
# Set the PHP timezone so that Behat does not fail.
1313
- echo "date.timezone = 'US/Central'" > /opt/circleci/php/$(phpenv global)/etc/conf.d/wp-cli-timezone.ini
@@ -16,9 +16,7 @@ dependencies:
1616
# Increase memory limit
1717
- echo "memory_limit = 512M" > /opt/circleci/php/$(phpenv global)/etc/conf.d/memory.ini
1818
override:
19-
- composer global require wp-cli/wp-cli:dev-master
20-
- composer global require behat/behat:~2.5
21-
- composer install --no-dev
19+
- composer install
2220
- bash bin/install-package-tests.sh
2321

2422
test:

0 commit comments

Comments
 (0)