-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ensure we use the alternate composer location
- Loading branch information
Showing
5 changed files
with
48 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_install.sh "" "" "" "" "../fixtures/composer.phar" "composer.lock" | ||
match_max 100000 | ||
|
||
expect "::debug::Using the following Composer command: '../fixtures/composer.phar install --no-interaction --no-progress --ansi'" | ||
expect "Installing dependencies" | ||
expect "Generating autoload files" | ||
expect eof | ||
|
||
# Clean up | ||
file delete -force vendor |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_install.sh "" "" "../fixtures/no-lock-file" "" "" "" | ||
match_max 100000 | ||
|
||
expect "::debug::Using the following Composer command: '*/composer update --no-interaction --no-progress --ansi --working-dir ../fixtures/no-lock-file'" | ||
expect "Updating dependencies" | ||
expect "Writing lock file" | ||
expect "Generating autoload files" | ||
expect eof | ||
|
||
# Clean up | ||
file delete -force ../fixtures/no-lock-file/vendor | ||
file delete -force ../fixtures/no-lock-file/composer.lock |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_paths.sh "../fixtures/composer.phar" | ||
match_max 100000 | ||
|
||
expect "::debug::Composer path is '../fixtures/composer.phar'\r | ||
::debug::Composer version 2.2.2 2021-12-29 14:15:27\r | ||
::debug::Composer cache directory found at '*'\r | ||
::debug::File composer.json found at './composer.json'\r | ||
::debug::File composer.lock path computed as './composer.lock'\r | ||
::set-output name=command::../fixtures/composer.phar\r | ||
::set-output name=cache-dir::*\r | ||
::set-output name=json::./composer.json\r | ||
::set-output name=lock::./composer.lock\r | ||
" | ||
expect eof |
Binary file not shown.