[icinga-checkins] icinga.org: icingaweb2/feature/travis: travis: Adding phpcs test

git at icinga.org git at icinga.org
Thu Jan 5 14:20:34 CET 2017


Module: icingaweb2
Branch: feature/travis
Commit: 401973943dfb99363dcb9f767ea3979477eadecf
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=401973943dfb99363dcb9f767ea3979477eadecf

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Thu Jan  5 14:20:29 2017 +0100

travis: Adding phpcs test

---

 .travis.yml |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9bef1df..1aac6df 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,6 @@
 language: php
 sudo: required
 
-php:
-  - '5.3'
-  - '5.4'
-  - '5.5'
-  - '5.6'
-  - '7.0'
-  - '7.1'
-
 services:
   - mysql
   - postgresql
@@ -17,6 +9,19 @@ cache:
   directories:
     - vendor
 
+matrix:
+  fast_finish: true
+  include:
+  - php: 5.3
+  - php: 5.4
+  - php: 5.5
+  - php: 5.6
+  - php: 7.0
+  - php: 7.1
+  - php: 7.1
+    script:
+      - composer exec -- phpcs -p --colors --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Icinga/ application/ modules/ test/
+
 branches:
   only:
   - master
@@ -33,4 +38,4 @@ before_script:
   - composer update
 
 script:
-  - phpunit -c modules/test/phpunit.xml
+  - composer exec phpunit -c modules/test/phpunit.xml



More information about the icinga-checkins mailing list