Skip to content

Commit 56a1c37

Browse files
authored
Merge pull request #64 from php-http/improve-generate-sh
Relative/Absolute path improvement for generate.sh
2 parents b08a52e + 9b4b793 commit 56a1c37

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ $ ./vendor/bin/http_test_server > /dev/null 2>&1 &
3131
Then generate ssh certificates:
3232

3333
```bash
34-
$ cd ./tests/server/ssl
35-
$ ./generate.sh
36-
$ cd ../../../
34+
$ composer gen-ssl
3735
```
3836

3937
Note: If you are running this on macOS and get the following error: "Error opening CA Private Key privkey.pem", check [this](ssl-macOS.md) file.

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"cs-check": "vendor/bin/php-cs-fixer fix --dry-run",
4141
"cs-fix": "vendor/bin/php-cs-fixer fix",
4242
"test": "vendor/bin/phpunit",
43-
"test-ci": "vendor/bin/phpunit --coverage-clover build/coverage.xml"
43+
"test-ci": "vendor/bin/phpunit --coverage-clover build/coverage.xml",
44+
"gen-ssl": "tests/server/ssl/generate.sh"
4445
},
4546
"extra": {
4647
"branch-alias": {

tests/server/ssl/generate.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
set -eo pipefail
4+
5+
cd $(dirname $0)
6+
37
C=FR
48
ST=Ile-de-France
59
L=Paris

0 commit comments

Comments
 (0)