Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix functional test setup with nginx (trivis-ci)

  • Loading branch information...
commit 1d1a45c0e10f58112e3b09ca76bc42ffbdfa0cbb 1 parent 11dbe69
@asm89 authored
Showing with 5 additions and 2 deletions.
  1. +3 −1 .travis.yml
  2. +2 −1  test/nginx.conf.dist
View
4 .travis.yml
@@ -4,8 +4,10 @@ php:
- 5.3
- 5.4
+before_install:
+ - echo "" | sudo add-apt-repository ppa:nginx/stable && sudo apt-get update && sudo apt-get -qq install nginx > /dev/null 2>&1
+
before_script:
- - sudo apt-get -qq install nginx > /dev/null 2>&1
- php-cgi -b 127.0.0.1:9000 &
- nginx -v && sudo nginx -c nginx.conf.dist -p test
- export TEST_SERVER="http://localhost:8080/server.php"
View
3  test/nginx.conf.dist
@@ -32,7 +32,8 @@ http {
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
+ fastcgi_param CONTENT_TYPE $content_type if_not_empty;
+
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Please sign in to comment.
Something went wrong with that request. Please try again.