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

git at icinga.org git at icinga.org
Thu Jan 5 14:35:45 CET 2017


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

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

WIP: travis: Adding phpcs test

---

 .travis.yml |   33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9bef1df..2628057 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,29 @@ cache:
   directories:
     - vendor
 
+matrix:
+  fast_finish: true
+  include:
+  - php: 5.3
+    env: CHECK=test
+  - php: 5.4
+    env: CHECK=test
+  - php: 5.5
+    env: CHECK=test
+  - php: 5.6
+    env: CHECK=test
+  - php: 7.0
+    env: CHECK=test
+  - php: 7.1
+    env: CHECK=test
+  - php: 7.1
+    env: CHECK=codestyle
+    script:
+      - >
+        composer exec -v -- phpcs -p -w -s --colors
+        --standard=PSR2 --extensions=php --encoding=utf-8
+        library/Icinga/ application/ modules/ test/
+
 branches:
   only:
   - master
@@ -33,4 +48,4 @@ before_script:
   - composer update
 
 script:
-  - phpunit -c modules/test/phpunit.xml
+  - composer exec -v -- phpunit -c modules/test/phpunit.xml



More information about the icinga-checkins mailing list