KEINOS / TPL-PHP-HelloWorld

✅ Overly-super-cautious "Hello World" in PHP7 and PHP8 for fun.
Apache License 2.0
2 stars 0 forks source link

Mal-detection when "local" specified #29

Closed KEINOS closed 4 years ago

KEINOS commented 4 years ago

While force running the tests in local with composer test local,if the packages are not installed it detects Docker as "down" even the Docker is available,

$ composer test all verbose local
> ./tests/run-tests.sh 'all' 'verbose' 'local'
--------------------------------------------------------------------------------
  ❌  ERROR: Requirements not installed
--------------------------------------------------------------------------------
- Please install the requirements for testing.
💡  Docker is installed but it is not available to use.
- Docker engine might be down. Check if Docker is running.
💡  Composer is installed.
- Checking if requirements can be installed in local ... (This may take time)
Script ./tests/run-tests.sh handling the test event returned with error code 1

$ docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:21:11 2020
 OS/Arch:           darwin/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683