From 8a4f97c66a7d4dce07fece4dc059c0be0a2b6f33 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 23 Jan 2015 16:19:23 +0100 Subject: split up travis conf --- tests/travis/travis-ci-apache | 19 ------------------- tests/travis/travis-ci-apache.conf | 19 +++++++++++++++++++ tests/travis/travis-ci-apache.sh | 13 +++++++++++++ 3 files changed, 32 insertions(+), 19 deletions(-) delete mode 100644 tests/travis/travis-ci-apache create mode 100644 tests/travis/travis-ci-apache.conf create mode 100644 tests/travis/travis-ci-apache.sh (limited to 'tests') diff --git a/tests/travis/travis-ci-apache b/tests/travis/travis-ci-apache deleted file mode 100644 index 5cfd3ccd0..000000000 --- a/tests/travis/travis-ci-apache +++ /dev/null @@ -1,19 +0,0 @@ - - - DocumentRoot %TRAVIS_BUILD_DIR% - - - Options FollowSymLinks MultiViews ExecCGI - AllowOverride All - Order deny,allow - Allow from all - - - - 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 - - - \ No newline at end of file diff --git a/tests/travis/travis-ci-apache.conf b/tests/travis/travis-ci-apache.conf new file mode 100644 index 000000000..5cfd3ccd0 --- /dev/null +++ b/tests/travis/travis-ci-apache.conf @@ -0,0 +1,19 @@ + + + DocumentRoot %TRAVIS_BUILD_DIR% + + + Options FollowSymLinks MultiViews ExecCGI + AllowOverride All + Order deny,allow + Allow from all + + + + 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 + + + \ No newline at end of file diff --git a/tests/travis/travis-ci-apache.sh b/tests/travis/travis-ci-apache.sh new file mode 100644 index 000000000..d8a514a72 --- /dev/null +++ b/tests/travis/travis-ci-apache.sh @@ -0,0 +1,13 @@ +# set up php under apache +if [[ $(phpenv version-name) != 'hhvm' ]]; then + sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf + sudo a2enmod rewrite actions fastcgi alias + echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm + sudo cp -f owncloud/apps/news/tests/travis/travis-ci-apache.conf /etc/apache2/sites-available/default + sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default +else + +fi + +sudo service apache2 restart \ No newline at end of file -- cgit v1.2.3