Skip to content

Commit

Permalink
Add travis.yml with phplinting
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed May 10, 2014
1 parent 119f307 commit aa6c12c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.phplint.sh
@@ -0,0 +1,12 @@
#!/bin/bash
#Author Addshore

find ../ -type f -name \*.php -exec php -l {} \; | grep "Errors parsing ";

#Flip the exit code
if [ $? -ne 0 ]
then
exit 0
else
exit 1
fi
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: php

php:
- 5.4

git:
submodules: false

script:
- bash .travis.phplint.sh

notifications:
irc:
channels:
- "chat.freenode.net#wikipedia-en-accounts-devs"
on_success: change
on_failure: always
template:
- "%{repository}/%{branch}/%{commit} - %{author} %{message} %{build_url}"

0 comments on commit aa6c12c

Please sign in to comment.