Skip to content

Commit

Permalink
One more travis https test
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Mar 21, 2015
1 parent 21102fb commit b0038f5
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
43 changes: 42 additions & 1 deletion tests/ci/travis/apache_vhost
Expand Up @@ -23,4 +23,45 @@
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>

</VirtualHost>
</VirtualHost>

<IfModule mod_ssl.c>

<VirtualHost _default_:443>

DocumentRoot %TRAVIS_BUILD_DIR%

ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined

<Directory "%TRAVIS_BUILD_DIR%">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>

# Wire up Apache to use Travis CI's php-fpm.
<IfModule mod_fastcgi.c>
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
</IfModule>

SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>

BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>

</IfModule>
46 changes: 45 additions & 1 deletion tests/ci/travis/apache_vhost_hhvm
Expand Up @@ -26,4 +26,48 @@
FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300
</IfModule>

</VirtualHost>
</VirtualHost>

<IfModule mod_ssl.c>

<VirtualHost _default_:443>

DocumentRoot %TRAVIS_BUILD_DIR%

ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined

<Directory "%TRAVIS_BUILD_DIR%">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>

# Configure Apache for HHVM FastCGI.
# See https://github.com/facebook/hhvm/wiki/fastcgi
<IfModule mod_fastcgi.c>
<FilesMatch \.php$>
SetHandler hhvm-php-extension
</FilesMatch>
Alias /hhvm /hhvm
Action hhvm-php-extension /hhvm virtual
FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300
</IfModule>

SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>

BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>

</IfModule>
1 change: 0 additions & 1 deletion tests/ci/travis/setup_apache.sh
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/ci/travis/setup_apache_hhvm.sh
Expand Up @@ -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
Expand Down

0 comments on commit b0038f5

Please sign in to comment.