summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-04-08 17:09:36 +0300
committerValery Piashchynski <[email protected]>2020-04-08 17:09:36 +0300
commitf24a11df068426628eaa885bc24f0abac1e5caf1 (patch)
treec6dcc94422bfd288c33af416ac92f475b915e10f
parentf2d4a57c7be5716fc6fd341ff978c90820ce0870 (diff)
Vendor directory fix (php vs golang)
-rw-r--r--.dockerignore1
-rw-r--r--.gitignore1
-rw-r--r--Makefile1
-rw-r--r--composer.json7
-rw-r--r--service/headers/service_test.go4
-rw-r--r--tests/client.php2
-rw-r--r--tests/http/client.php2
-rw-r--r--tests/http/slow-client.php2
-rw-r--r--tests/slow-client.php2
-rw-r--r--tests/slow-destroy.php2
10 files changed, 14 insertions, 10 deletions
diff --git a/.dockerignore b/.dockerignore
index 9bfb38f4..b817b3c8 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -7,3 +7,4 @@
/tests
/bin
composer.json
+vendor_php
diff --git a/.gitignore b/.gitignore
index 7fb2cf09..852b8881 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
.idea
composer.lock
vendor
+vendor_php
builds/
tests/vendor/
.rr-sample.yaml
diff --git a/Makefile b/Makefile
index f1a0fa55..d7e85f90 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,6 @@ install: all
uninstall:
rm -f /usr/local/bin/rr
test:
- go mod vendor
composer update
go test -v -race -cover
go test -v -race -cover ./util
diff --git a/composer.json b/composer.json
index beed4175..aa461df3 100644
--- a/composer.json
+++ b/composer.json
@@ -22,11 +22,14 @@
"symfony/console": "^2.5.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
"laminas/laminas-diactoros": "^1.3 || ^2.0"
},
+ "config": {
+ "vendor-dir": "vendor_php"
+ },
"require-dev": {
- "phpstan/phpstan": "~0.12"
+ "phpstan/phpstan": "~0.12"
},
"scripts": {
- "analyze": "@php ./vendor/bin/phpstan analyze -c ./phpstan.neon.dist --no-progress --ansi"
+ "analyze": "@php ./vendor_php/bin/phpstan analyze -c ./phpstan.neon.dist --no-progress --ansi"
},
"autoload": {
"psr-4": {
diff --git a/service/headers/service_test.go b/service/headers/service_test.go
index 8d727c15..a67def02 100644
--- a/service/headers/service_test.go
+++ b/service/headers/service_test.go
@@ -200,7 +200,7 @@ func TestCORS_OPTIONS(t *testing.T) {
}`,
httpCfg: `{
"enable": true,
- "address": ":6379",
+ "address": ":16379",
"maxRequestSize": 1024,
"workers":{
"command": "php ../../tests/http/client.php headers pipes",
@@ -222,7 +222,7 @@ func TestCORS_OPTIONS(t *testing.T) {
time.Sleep(time.Millisecond * 100)
defer c.Stop()
- req, err := http.NewRequest("OPTIONS", "http://localhost:6379", nil)
+ req, err := http.NewRequest("OPTIONS", "http://localhost:16379", nil)
if err != nil {
return err
}
diff --git a/tests/client.php b/tests/client.php
index 31caa410..835b1c6c 100644
--- a/tests/client.php
+++ b/tests/client.php
@@ -3,7 +3,7 @@
use Spiral\Goridge;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/vendor/autoload.php";
+require dirname(__DIR__) . "/vendor_php/autoload.php";
if (count($argv) < 3) {
die("need 2 arguments");
diff --git a/tests/http/client.php b/tests/http/client.php
index 166acfb6..9f21b273 100644
--- a/tests/http/client.php
+++ b/tests/http/client.php
@@ -4,7 +4,7 @@ use Spiral\Goridge;
use Spiral\RoadRunner;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/../vendor/autoload.php";
+require dirname(__DIR__) . "/../vendor_php/autoload.php";
if (count($argv) < 3) {
die("need 2 arguments");
diff --git a/tests/http/slow-client.php b/tests/http/slow-client.php
index 58250dfb..4d3963d7 100644
--- a/tests/http/slow-client.php
+++ b/tests/http/slow-client.php
@@ -4,7 +4,7 @@ use Spiral\Goridge;
use Spiral\RoadRunner;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/../vendor/autoload.php";
+require dirname(__DIR__) . "/../vendor_php/autoload.php";
if (count($argv) < 3) {
die("need 2 arguments");
diff --git a/tests/slow-client.php b/tests/slow-client.php
index bc4b0561..ece0a439 100644
--- a/tests/slow-client.php
+++ b/tests/slow-client.php
@@ -3,7 +3,7 @@
use Spiral\Goridge;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/vendor/autoload.php";
+require dirname(__DIR__) . "/vendor_php/autoload.php";
if (count($argv) < 3) {
die("need 2 arguments");
diff --git a/tests/slow-destroy.php b/tests/slow-destroy.php
index 6af61050..e2a01af2 100644
--- a/tests/slow-destroy.php
+++ b/tests/slow-destroy.php
@@ -3,7 +3,7 @@
use Spiral\Goridge;
ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/vendor/autoload.php";
+require dirname(__DIR__) . "/vendor_php/autoload.php";
if (count($argv) < 3) {
die("need 2 arguments");