Permalink
Browse files

Fix functional test setup with nginx (trivis-ci)

  • Loading branch information...
1 parent 11dbe69 commit 1d1a45c0e10f58112e3b09ca76bc42ffbdfa0cbb @asm89 committed May 15, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −1 .travis.yml
  2. +2 −1 test/nginx.conf.dist
View
@@ -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
@@ -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;

0 comments on commit 1d1a45c

Please sign in to comment.