Skip to content

Commit

Permalink
testing Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Tickle committed Mar 20, 2014
1 parent 2b889e0 commit 975a9f1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -3,7 +3,6 @@ logs/*
files/*
images/*
cache.properties
build/
core/conf/defines.php
javascript/captcha/recaptcha/recaptcha_settings.php
.buildpath
Expand Down
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: php
php:
- 5.3
- 5.4
- 5.5
- hhvm

before_script:
- sudo apt-get install apache2 libapache2-mod-fastcgi
- 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 build/travis-ci-apache /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart

notifications:
irc: "irc.freenode.org#asulug"
20 changes: 20 additions & 0 deletions build/travis-ci-apache
@@ -0,0 +1,20 @@
<VirtualHost *:80>

DocumentRoot %TRAVIS_BUILD_DIR%

<Directory "%TRAVIS_BUILD_DIR%">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>

# Wire up Apache to use Travis CI's php-fpm.
<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
</IfModule>

</VirtualHost>

0 comments on commit 975a9f1

Please sign in to comment.