Skip to content

Commit

Permalink
Try using localhost for https tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Mar 21, 2015
1 parent 542252a commit ca57a23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/ci/travis/setup_apache.sh
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/ci/travis/setup_apache_hhvm.sh
Expand Up @@ -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
Expand Down

0 comments on commit ca57a23

Please sign in to comment.