Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add travis CI configuration file

Until we have unit tests, we can already check coding standards
automatically with Travis CI and PHP-CS-FIXER.
  • Loading branch information...
commit e9cfb24522cea14f7a36f4b099b03ca33ef5fd1d 1 parent 334c5aa
@b-durand b-durand authored
Showing with 22 additions and 0 deletions.
  1. +10 −0 .php_cs
  2. +12 −0 .travis.yml
View
10 .php_cs
@@ -0,0 +1,10 @@
+<?php
+$finder = Symfony\CS\Finder\DefaultFinder::create()
+ ->name('*.phtml')
+ ->notName('autoload_classmap.php')
+ ->notName('README.md')
+ ->notName('.php_cs')
+ ->in(__DIR__);
+
+return Symfony\CS\Config\Config::create()
+ ->finder($finder);
View
12 .travis.yml
@@ -0,0 +1,12 @@
+language: php
+
+php:
+ - 5.3.3
+ - 5.3
+ - 5.4
+
+before_install:
+ - wget http://cs.sensiolabs.org/get/php-cs-fixer.phar
+
+script:
+ - output=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;
Please sign in to comment.
Something went wrong with that request. Please try again.