Skip to content

Commit

Permalink
[BUGFIX] Don't use minimum-stability dev on TYPO3 stable in build/CI
Browse files Browse the repository at this point in the history
The composer script "tests:env" olways used the dev stability,
even if stable TYPO3 used in matrix.
This fix uses grep instead of not working sh string substitution comparator.

Ported from: TYPO3-Solr/ext-solr#3463
  • Loading branch information
dkd-kaehm committed Jul 4, 2023
1 parent a043b1f commit 481e5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
"tika:download:server": [ "@tika:download -s" ],
"tika:req:tika": [ "@composer config extra.TYPO3-Solr.ext-tika.require.Tika" ],
"tika:req:solr": [ "@composer config extra.TYPO3-Solr.ext-tika.require.Solr" ],
"_comment": "CI scripts",
"_comment": "CI scripts",
"tests:env": [
"if [ -z ${TYPO3_VERSION+x} ]; then >&2 echo \"Can not proceed, because env var TYPO3_VERSION is not set\"; exit 1; else echo \"Setup test environment for TYPO3 ${TYPO3_VERSION}\"; fi",
"if [ \"${TYPO3_VERSION#*dev}\" != \"dev\" ]; then $COMPOSER_BINARY config minimum-stability dev; fi"
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi"
],
"tests:setup": [
"@tests:env",
Expand Down

0 comments on commit 481e5d0

Please sign in to comment.