Permalink
Browse files

For Travis CI: Fixed IRC channel, added phplint, made unit test frame…

…work more standard-ish
  • Loading branch information...
jtickle committed Mar 20, 2014
1 parent 2282ba9 commit 433a2df12c11a64212b160f114698d7d7d3ee930
View
@@ -0,0 +1,10 @@
#!/bin/bash
err=0
find "$1" -name '*.php' | while read i; do
php -l "$i"
if [ $? -ne 0 ]; then err=1; fi
done
exit $err
File renamed without changes.
View
@@ -7,16 +7,19 @@ php:
before_script:
- lsb_release -a
- lscpu
- 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 cp -f .travis-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
script: "./run-tests"
script:
- ".travis-build/phplint ."
- "phpunit"
notifications:
irc: "irc.freenode.org#asulug"
irc: "irc.freenode.org#phpwebsite"
File renamed without changes.
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 433a2df

Please sign in to comment.