mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +01:00
skip check when testing
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
/**
|
/**
|
||||||
* Check the system's compatibility with Valet.
|
* Check the system's compatibility with Valet.
|
||||||
*/
|
*/
|
||||||
if (PHP_OS != 'Darwin') {
|
$inTestingEnvironment = isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] == 'testing';
|
||||||
|
|
||||||
|
if (PHP_OS != 'Darwin' && ! $inTestingEnvironment) {
|
||||||
echo 'Valet only supports the Mac operating system.'.PHP_EOL;
|
echo 'Valet only supports the Mac operating system.'.PHP_EOL;
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
@@ -15,7 +17,7 @@
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exec('which brew') != '/usr/local/bin/brew') {
|
if (exec('which brew') != '/usr/local/bin/brew' && ! $inTestingEnvironment) {
|
||||||
echo 'Valet requires Brew to be installed on your Mac.';
|
echo 'Valet requires Brew to be installed on your Mac.';
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Laravel Valet
|
# Laravel Valet
|
||||||
|
|
||||||
|
[](https://travis-ci.org/laravel/valet)
|
||||||
[](https://packagist.org/packages/laravel/valet)
|
[](https://packagist.org/packages/laravel/valet)
|
||||||
[](https://packagist.org/packages/laravel/valet)
|
[](https://packagist.org/packages/laravel/valet)
|
||||||
[](https://packagist.org/packages/laravel/valet)
|
[](https://packagist.org/packages/laravel/valet)
|
||||||
|
|||||||
Reference in New Issue
Block a user