-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from boesing/feature/composer-2.3
Support for composer 2.3.0
- Loading branch information
Showing
9 changed files
with
352 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
{ | ||
"additional_checks": [ | ||
{ | ||
"name": "PHPUnit on PHP 7.4 using Composer v1 with lowest dependencies", | ||
"name": "PHPUnit using Composer v1", | ||
"job": { | ||
"command": "rm -rf ./vendor && composer-1 install && ./vendor/bin/phpunit", | ||
"php": "7.4", | ||
"dependencies": "lowest" | ||
} | ||
}, | ||
{ | ||
"name": "PHPUnit on PHP 7.4 using Composer v1 with latest dependencies", | ||
"job": { | ||
"command": "rm -rf ./vendor && composer-1 install && ./vendor/bin/phpunit", | ||
"php": "7.4", | ||
"dependencies": "latest" | ||
} | ||
}, | ||
{ | ||
"name": "PHPUnit on PHP 8.0 using Composer v1 with lowest dependencies", | ||
"job": { | ||
"command": "rm -rf ./vendor && composer-1 install --ignore-platform-reqs && ./vendor/bin/phpunit", | ||
"php": "8.0", | ||
"dependencies": "lowest" | ||
} | ||
}, | ||
{ | ||
"name": "PHPUnit on PHP 8.0 using Composer v1 with latest dependencies", | ||
"job": { | ||
"command": "rm -rf ./vendor && composer-1 install && ./vendor/bin/phpunit", | ||
"php": "8.0", | ||
"dependencies": "latest" | ||
"command": "rm -r vendor/ && composer require --dev --update-with-all-dependencies composer/composer:^1 && xmlstarlet ed -u '/phpunit/@convertDeprecationsToExceptions' -v 'false' phpunit.xml.dist > phpunit.xml && vendor/bin/phpunit", | ||
"php": "*", | ||
"dependencies": "*" | ||
} | ||
} | ||
] | ||
], | ||
"ignore_php_platform_requirements": { | ||
"8.0": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function get_composer() { | ||
wget https://getcomposer.org/composer-1.phar | ||
chmod a+x composer-1.phar | ||
mv composer-1.phar /usr/local/bin/composer-1 | ||
} | ||
|
||
JOB=$3 | ||
COMMAND=$(echo "${JOB}" | jq -r ".command") | ||
PATTERN="composer-1 install" | ||
|
||
if [[ "${COMMAND}" =~ ${PATTERN} ]];then | ||
get_composer | ||
fi | ||
apt install xmlstarlet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.