From d6b079bfb04e9c912b00a9d36b326faf1fd3e7d9 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Thu, 1 Jun 2017 12:16:28 +0200 Subject: [PATCH 1/3] travis: Move phpcs configuration into phpcs.xml --- .travis.yml | 2 +- phpcs.xml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 phpcs.xml diff --git a/.travis.yml b/.travis.yml index 32e9d11..63ebc3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,5 +18,5 @@ before_script: - ln -s icingaweb2-2.4.0/library/vendor/Zend script: - - php phpcs.phar --report-width=auto --report-full --report-gitblame --report-summary -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Businessprocess/ application/ configuration.php run.php test + - php phpcs.phar - phpunit --testdox || phpunit --verbose diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..f5488c7 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,22 @@ + + + Sniff our code a while + + configuration.php + run.php + application/ + library/ + test/ + + vendor/* + + + + + + + + + + + From a98aafdc28c753a913215c764e8a4f2769b282b1 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Thu, 1 Jun 2017 12:15:27 +0200 Subject: [PATCH 2/3] travis: Add caching for vendor resources --- .travis.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 63ebc3d..516dabe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,15 +8,23 @@ php: - '7.1' - nightly +cache: + directories: + - vendor + +env: + - ICINGAWEB_VERSION=2.4.1 PHPCS_VERSION=2.9.1 + before_script: + - test -d vendor || mkdir vendor # TODO: Re-enable after dropping 5.3 support: # - curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar - - curl -OL https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.9.1/phpcs.phar - - wget https://github.com/Icinga/icingaweb2/archive/v2.4.0.tar.gz - - tar xfz v2.4.0.tar.gz - - ln -s icingaweb2-2.4.0/library/Icinga - - ln -s icingaweb2-2.4.0/library/vendor/Zend + - test -e vendor/phpcs-${PHPCS_VERSION}.phar || wget -O vendor/phpcs-${PHPCS_VERSION}.phar https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${PHPCS_VERSION}/phpcs.phar + - test -e vendor/v${ICINGAWEB_VERSION}.tar.gz || (cd vendor/ && wget https://github.com/Icinga/icingaweb2/archive/v${ICINGAWEB_VERSION}.tar.gz) + - test -d vendor/icingaweb2-${ICINGAWEB_VERSION} || (cd vendor && tar xfz v${ICINGAWEB_VERSION}.tar.gz) + - ln -s vendor/icingaweb2-${ICINGAWEB_VERSION}/library/Icinga + - ln -s vendor/icingaweb2-${ICINGAWEB_VERSION}/library/vendor/Zend script: - - php phpcs.phar + - php vendor/phpcs-${PHPCS_VERSION}.phar - phpunit --testdox || phpunit --verbose From 33ee0278c4de2da1ca785c073c606065da020d45 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Thu, 27 Jul 2017 14:18:55 +0200 Subject: [PATCH 3/3] Update README --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 126306d..3a15ef0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ +[![Build Status](https://travis-ci.org/Icinga/icingaweb2-module-businessprocess.png?branch=master)](https://travis-ci.org/Icinga/icingaweb2-module-businessprocess) +[![Github Tag](https://img.shields.io/github/tag/Icinga/icingaweb2-module-businessprocess.svg)](https://github.com/Icinga/icingaweb2-module-businessprocess) + Business Processes - Icinga Web 2 module ======================================== +![Icinga Logo](https://www.icinga.com/wp-content/uploads/2014/06/icinga_logo.png) + If you want to visualize and monitor hierarchical business processes based on any or all objects monitored by Icinga, the Icinga Web 2 business process module is the way to go. @@ -17,8 +22,6 @@ You're running a huge cloud, want to get rid of the monitoring noise triggered by your auto-scaling platform but still want to have detailed information just a couple of clicks away in case you need them? You will love this little module! -[![Build Status](https://travis-ci.org/Icinga/icingaweb2-module-businessprocess.svg?branch=master)](https://travis-ci.org/Icinga/icingaweb2-module-businessprocess) - Documentation -------------