File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ sudo : true
2
+
1
3
language : php
2
4
3
5
before_script :
6
+ - sudo apt-get update
7
+ - sudo apt-get install apache2 libapache2-mod-fastcgi
8
+ # enable php-fpm
9
+ - sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
10
+ - sudo a2enmod rewrite actions fastcgi alias
11
+ - echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
12
+ - ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
13
+ # configure apache virtual hosts
14
+ - sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/default
15
+ - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
16
+ - sudo service apache2 restart
4
17
- composer self-update
5
18
- composer install --dev --prefer-source
6
19
Original file line number Diff line number Diff line change
1
+ <VirtualHost *:80>
2
+ DocumentRoot %TRAVIS_BUILD_DIR%/tests/server/php-curl-test
3
+
4
+ <Directory "%TRAVIS_BUILD_DIR%">
5
+ Options FollowSymLinks MultiViews ExecCGI
6
+ AllowOverride All
7
+ Order deny,allow
8
+ Allow from all
9
+ </Directory>
10
+
11
+ # Wire up Apache to use Travis CI's php-fpm.
12
+ <IfModule mod_fastcgi.c>
13
+ AddHandler php5-fcgi .php
14
+ Action php5-fcgi /php5-fcgi
15
+ Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
16
+ FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
17
+ </IfModule>
18
+ </VirtualHost>
Original file line number Diff line number Diff line change 5
5
class CurlTest extends \PHPUnit_Framework_TestCase
6
6
{
7
7
8
- const TEST_URL = 'http://php-curl-test.anezi.net ' ;
8
+ const TEST_URL = 'http://localhost ' ;
9
9
10
10
/**
11
11
*
You can’t perform that action at this time.
0 commit comments