Permalink
Browse files

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

…work more standard-ish
  • Loading branch information...
1 parent 2282ba9 commit 433a2df12c11a64212b160f114698d7d7d3ee930 @jtickle jtickle committed Mar 20, 2014
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
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-PHPUNIT=`which phpunit`
-
-if [ ! -x $PHPUNIT ]; then
- echo "phpWebSite uses phpUnit for unit testing. Please install phpUnit."
- exit
-fi
-
-$PHPUNIT -c phpunit-phpwebsite.xml

0 comments on commit 433a2df

Please sign in to comment.