From b0038f511df6f08e5cfbad06c7c139761722302f Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 21 Mar 2015 01:10:49 +0000 Subject: [PATCH] One more travis https test --- .travis.yml | 2 +- tests/ci/travis/apache_vhost | 43 +++++++++++++++++++++++++- tests/ci/travis/apache_vhost_hhvm | 46 +++++++++++++++++++++++++++- tests/ci/travis/setup_apache.sh | 1 - tests/ci/travis/setup_apache_hhvm.sh | 1 - 5 files changed, 88 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 287dc4e..b446cc6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ script: after_failure: - cat apache_error.log - cat apache_access.log - - cat /etc/apache2/sites-available/default-ssl + - cat /etc/ssl/certs/ssl-cert-snakeoil.pem after_script: # # upload code-coverage to Scrutinizer diff --git a/tests/ci/travis/apache_vhost b/tests/ci/travis/apache_vhost index 6f05202..e4d2bf7 100644 --- a/tests/ci/travis/apache_vhost +++ b/tests/ci/travis/apache_vhost @@ -23,4 +23,45 @@ FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization - \ No newline at end of file + + + + + + + DocumentRoot %TRAVIS_BUILD_DIR% + + ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log" + CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined + + + Options FollowSymLinks MultiViews ExecCGI + AllowOverride All + Order deny,allow + Allow from all + + + # Wire up Apache to use Travis CI's php-fpm. + + AddHandler php5-fcgi .php + Action php5-fcgi /php5-fcgi + Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi + FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization + + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem + SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key + + + SSLOptions +StdEnvVars + + + BrowserMatch "MSIE [2-6]" \ + nokeepalive ssl-unclean-shutdown \ + downgrade-1.0 force-response-1.0 + BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown + + + + \ No newline at end of file diff --git a/tests/ci/travis/apache_vhost_hhvm b/tests/ci/travis/apache_vhost_hhvm index 94dfefe..1afe0ff 100644 --- a/tests/ci/travis/apache_vhost_hhvm +++ b/tests/ci/travis/apache_vhost_hhvm @@ -26,4 +26,48 @@ FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300 - \ No newline at end of file + + + + + + + DocumentRoot %TRAVIS_BUILD_DIR% + + ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log" + CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined + + + Options FollowSymLinks MultiViews ExecCGI + AllowOverride All + Order deny,allow + Allow from all + + + # Configure Apache for HHVM FastCGI. + # See https://github.com/facebook/hhvm/wiki/fastcgi + + + SetHandler hhvm-php-extension + + Alias /hhvm /hhvm + Action hhvm-php-extension /hhvm virtual + FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300 + + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem + SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key + + + SSLOptions +StdEnvVars + + + BrowserMatch "MSIE [2-6]" \ + nokeepalive ssl-unclean-shutdown \ + downgrade-1.0 force-response-1.0 + BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown + + + + \ No newline at end of file diff --git a/tests/ci/travis/setup_apache.sh b/tests/ci/travis/setup_apache.sh index d375e68..4aff745 100755 --- a/tests/ci/travis/setup_apache.sh +++ b/tests/ci/travis/setup_apache.sh @@ -4,7 +4,6 @@ # @see https://github.com/travis-ci/travis-ci.github.com/blob/master/docs/user/languages/php.md#apache--php sudo a2enmod rewrite actions fastcgi alias ssl -sudo a2ensite default-ssl # enable php-fpm sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf diff --git a/tests/ci/travis/setup_apache_hhvm.sh b/tests/ci/travis/setup_apache_hhvm.sh index 80ed1c0..7d86a09 100755 --- a/tests/ci/travis/setup_apache_hhvm.sh +++ b/tests/ci/travis/setup_apache_hhvm.sh @@ -4,7 +4,6 @@ # @see https://github.com/travis-ci/travis-ci.github.com/blob/master/docs/user/languages/php.md#apache--php sudo a2enmod rewrite actions fastcgi alias ssl -sudo a2ensite default-ssl # start HHVM hhvm -m daemon -vServer.Type=fastcgi -vServer.Port=9000 -vServer.FixPathInfo=true -- 2.43.0