Skip to content

Commit

Permalink
qa: ignore platform reqs when installing mongo client library under P…
Browse files Browse the repository at this point in the history
…HP 8

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Jun 11, 2021
1 parent 3adaef7 commit 09dcf38
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .laminas-ci/pre-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

set -e

composer require --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter
JOB=$3
PHP_VERSION=$(echo "${JOB}" | jq -r '.php')

if [[ "$PHP_VERSION" =~ 8. ]];then
composer require --ignore-platform-req=php --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter
else
composer require --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter
fi

0 comments on commit 09dcf38

Please sign in to comment.