Skip to content
Permalink
Browse files

Merge branch 'b-6.x'

  • Loading branch information...
PirxDanford committed Aug 29, 2019
2 parents e0ab9ee + 21f4f42 commit 4f8da638118e3376dcf5c2be89b0956584777afa
Showing with 33 additions and 8 deletions.
  1. +22 −0 .travis.sites_conf
  2. +11 −8 .travis.yml
@@ -0,0 +1,22 @@
<VirtualHost *:80>

DocumentRoot %TRAVIS_BUILD_DIR%

<Directory "%TRAVIS_BUILD_DIR%/">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Require all granted
</Directory>

<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

<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>

</VirtualHost>
@@ -1,6 +1,6 @@
language: php

dist: precise
dist: xenial

notifications:
email: false
@@ -37,18 +37,21 @@ before_install:
- sudo apt-get update

before_script:
# apache setup (http://docs.travis-ci.com/user/languages/php/#Apache-%2B-PHP)
# remove xdebug
- phpenv config-rm xdebug.ini
# apache setup (https://docs.travis-ci.com/user/languages/php/#apache--php)
- sudo apt-get install apache2 libapache2-mod-fastcgi
# enable php-fpm
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- if [[ $(phpenv version-name) = 7.* ]]; then cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf; fi;
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- if [[ $(phpenv version-name) = 7.* ]]; then sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf; fi;
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sudo sed -i -e "s,www-data,travis,g" /etc/apache2/envvars
- sudo chown -R travis:travis /var/lib/apache2/fastcgi
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- phpenv config-rm xdebug.ini
# configure apache virtual host
- echo "$(curl -fsSL https://gist.githubusercontent.com/adriankirchner/197e3d13ccfb680f8942/raw/5b36cd3740cc05adb1c9d5c0568c851dd7700dcc/gistfile1.apacheconf)" | sudo tee /etc/apache2/sites-available/default > /dev/null
- sudo sed -e "s|%TRAVIS_BUILD_DIR%|$(pwd)/source|g" --in-place /etc/apache2/sites-available/default
# configure apache virtual hosts
- sudo cp .travis.sites_conf /etc/apache2/sites-available/000-default.conf
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)/source?g" --in-place /etc/apache2/sites-available/000-default.conf
- sudo service apache2 restart

# database setup

0 comments on commit 4f8da63

Please sign in to comment.
You can’t perform that action at this time.