Skip to content

Commit

Permalink
enable replace key via merge plugin and enable travis tests for lamim…
Browse files Browse the repository at this point in the history
…as-cache
  • Loading branch information
basz committed May 27, 2021
1 parent 7caedd2 commit f26ab72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ matrix:
- php: 8.0
env:
- DEPENDENCIES=""
- LAMINAS_CACHE=true
- php: 8.0
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- LAMINAS_CACHE=true

cache:
directories:
Expand All @@ -38,7 +40,7 @@ cache:
before_script:
- if [[ $COMPOSER1 == 'true' ]]; then composer self-update --1; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer require --dev bushbaby/php-cs-fixer-config:^1.0.5; fi
- if [[ $LAMINAS_CACHE == 'true' ]]; then composer require --dev laminas/laminas-cache; fi
- if [[ $LAMINAS_CACHE == 'true' ]]; then composer require --dev wikimedia/composer-merge-plugin; composer require --dev laminas/laminas-cache; fi
- composer update $DEPENDENCIES
- mkdir -p test/_build/logs
- mkdir -p .php-cs-fixer
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
"laminas": {
"component": "BsbFlysystem",
"config-provider": "BsbFlysystem\\ConfigProvider"
},
"merge-plugin": {
"include": [
"composer.php8.json"
],
"replace": true
}
},
"config": {
Expand Down
11 changes: 11 additions & 0 deletions composer.php8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"replace": {
"laminas/laminas-cache-storage-adapter-apc": "*",
"laminas/laminas-cache-storage-adapter-dba": "*",
"laminas/laminas-cache-storage-adapter-memcached": "*",
"laminas/laminas-cache-storage-adapter-mongodb": "*",
"laminas/laminas-cache-storage-adapter-wincache": "*",
"laminas/laminas-cache-storage-adapter-xcache": "*",
"laminas/laminas-cache-storage-adapter-zend-server": "*"
}
}

0 comments on commit f26ab72

Please sign in to comment.