Updated the CI

This commit is contained in:
Cédric Belin
2019-04-17 18:48:21 +02:00
parent 21b2fc1fa3
commit 72ad2d9c84
2 changed files with 4 additions and 4 deletions

View File

@ -4,5 +4,5 @@ notifications: {email: false}
php: ['7.2', '7.3']
install: composer install --no-interaction
script: composer test
after_success: composer coverage
script: composer run-script test
after_success: composer run-script coverage

View File

@ -73,12 +73,12 @@ class RoboFile extends Tasks {
* @return Result The task result.
*/
function upgrade(): Result {
$composer = escapeshellarg(PHP_OS_FAMILY == 'Windows' ? 'C:\Program Files\PHP\share\composer.phar' : '/usr/local/bin/composer');
$composer = PHP_OS_FAMILY == 'Windows' ? 'php '.escapeshellarg('C:\Program Files\PHP\share\composer.phar') : 'composer';
return $this->taskExecStack()
->exec('git reset --hard')
->exec('git fetch --all --prune')
->exec('git pull --rebase')
->exec("php $composer update --no-interaction")
->exec("$composer update --no-interaction")
->run();
}