- if [ $TRAVIS_PHP_VERSION != "hhvm" -a $TRAVIS_PHP_VERSION != "7.0" ]; then phpenv config-rm xdebug.ini; fi
# We set up an Apache instance inside the Travis VM and test it.
- - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then ./tests/ci/travis/install_apache.sh; fi"
- - sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/travis/install_apache_hhvm.sh; fi"
+ - if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then ./tests/ci/travis/install_apache.sh; fi
+ - if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/travis/install_apache_hhvm.sh; fi
+ - ./tests/ci/travis/install_nginx.sh
script:
# to have code coverage: --coverage-clover=coverage.clover
- phpunit tests LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=gggeek.ssl.altervista.org HTTPSURI=/sw/xmlrpc/demo/server/server.php NOPROXY=1 DEBUG=1
+ phpunit tests LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=gggeek.ssl.altervista.org HTTPSURI=/sw/xmlrpc/demo/server/server.php PROXY=localhost:8080 DEBUG=1
#after_script:
# # upload code-coverage to Scrutinizer
--- /dev/null
+#!/bin/sh
+
+# enable nginx (to serve as proxy)
+
+apt-get install nginx
+sudo cp -f tests/ci/nginx.conf /etc/nginx/nginx.conf
+sudo service nginx restart
--- /dev/null
+worker_processes 1;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ #include mime.types;
+ #default_type application/octet-stream;
+ gzip on;
+
+ server {
+ listen 8080;
+ location / {
+ proxy_pass http://localhost;
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_redirect off;
+ }
+ }
+}
\ No newline at end of file