Skip to content

Commit

Permalink
Merge pull request #4 from stevegrunwell/feature/loosen-composer-requ…
Browse files Browse the repository at this point in the history
…irements

Loosen Composer requirements
  • Loading branch information
stevegrunwell committed Jun 14, 2018
2 parents 37cf22c + a4e116e commit d762c23
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ matrix:
include:
- php: 7.2
env: WP_VERSION=trunk
- php: 7.2
env: WP_VERSION=trunk COMPOSER_LOWEST=1
- php: 7.2
env: WP_VERSION=latest RUN_PHPCS=1 RUN_CODE_COVERAGE=1
- php: 7.1
Expand All @@ -36,7 +38,12 @@ before_script:
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
composer global require "phpunit/phpunit=4.8.*|5.7.*"
fi
- composer install --prefer-dist --no-suggest --no-autoloader
- |
if [[ ${COMPOSER_LOWEST} ]]; then
composer update $COMPOSER_ARGS
else
composer install --prefer-dist --no-suggest --no-autoloader
fi
script:
- |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

* Lower the minimum version of [composer/installers](https://github.com/composer/installers) to `^1.0` ([#2]).

## [1.1.0] - 2018-04-14

* Bypass the caching operation if a callback either throws an Exception or returns a `WP_Error` object ([#1]).
Expand All @@ -25,3 +29,4 @@ Initial public release of the package, including the following functions:
[1.1.0]: https://github.com/stevegrunwell/wp-cache-remember/releases/tag/v1.1.0
[1.0.0]: https://github.com/stevegrunwell/wp-cache-remember/releases/tag/v1.0.0
[#1]: https://github.com/stevegrunwell/wp-cache-remember/pull/1
[#2]: https://github.com/stevegrunwell/wp-cache-remember/issues/2
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"minimum-stability": "stable",
"require": {
"php": ">=5.2",
"composer/installers": "^1.5"
"composer/installers": "^1.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d762c23

Please sign in to comment.