Try using localhost for https tests on Travis
authorgggeek <giunta.gaetano@gmail.com>
Sat, 21 Mar 2015 00:24:07 +0000 (00:24 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 21 Mar 2015 00:24:07 +0000 (00:24 +0000)
.travis.yml
tests/ci/travis/setup_apache.sh
tests/ci/travis/setup_apache_hhvm.sh

index 0f0c421..70c2801 100644 (file)
@@ -27,7 +27,7 @@ before_script:
 
 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 PROXY=localhost:8080
+  phpunit tests LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=localhost HTTPSURI=/demo/server/server.php PROXY=localhost:8080
 
 after_failure:
   - cat apache_error.log
index bdb5749..d375e68 100755 (executable)
@@ -3,7 +3,8 @@
 # enable php-fpm
 # @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
+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
index b604f83..80ed1c0 100755 (executable)
@@ -3,7 +3,8 @@
 # enable hhvm-fcgi
 # @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
+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