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

git at icinga.org git at icinga.org
Thu Jan 5 14:29:23 CET 2017


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

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

WIP: travis: Adding phpcs test

---

 .travis.yml |   26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9bef1df..d659ce7 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,22 @@ 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 -w -s --colors
+        --standard=PSR2 --extensions=php --encoding=utf-8
+        library/Icinga/ application/ modules/ test/
+
 branches:
   only:
   - master
@@ -33,4 +41,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