Skip to content

Commit bc5604e

Browse files
committed
Debug output in Travis
1 parent d3d4762 commit bc5604e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis/before_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ composer config repositories.travis_to_test git https://github.com/$TRAVIS_REPO_
2727
#TODO make it work with tags as well:
2828

2929
composer require ${COMPOSER_PACKAGE_NAME}:dev-${TRAVIS_BRANCH}\#{$TRAVIS_COMMIT}
30-
php ../.travis/merge-dev.php vendor/$COMPOSER_PACKAGE_NAME/composer.json composer.json
30+
php ../.travis/merge-dev.php vendor/$COMPOSER_PACKAGE_NAME/composer.json composer.json | tee composer.json
3131

3232
# prepare for test suite
3333
case $TEST_SUITE in

.travis/merge-dev.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Merge autoload-dev and require-dev from one composer.json into another one
3+
* Merge autoload-dev and require-dev from one composer.json
44
*
55
* This is used to install the module within a Magento 2 installation, but with its dev dependencies
66
*/
@@ -20,4 +20,4 @@
2020
$toJson['require-dev'] = array_replace_recursive($toJson['require-dev'] ?? [], $fromJson['require-dev']);
2121
$toJson['autoload-dev'] = array_merge_recursive($toJson['autoload-dev'] ?? [], $fromJson['autoload-dev']);
2222

23-
file_put_contents($toFile, json_encode($toJson, JSON_PRETTY_PRINT));
23+
echo json_encode($toJson, JSON_PRETTY_PRINT);

0 commit comments

Comments
 (0)