From dc169cb6a84c0d35547e295201d32f8536cf6cb9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 17 Jan 2019 13:46:23 +0100 Subject: [PATCH] test: Integrate icingaweb2-module-ipl as dependency refs #130 --- .travis.yml | 1 + library/Businessprocess/Test/Bootstrap.php | 1 + test/setup_vendor.sh | 14 ++++++++++++++ 3 files changed, 16 insertions(+) diff --git a/.travis.yml b/.travis.yml index 16cd0a9..188c968 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ cache: env: - ICINGAWEB_VERSION=2.5.1 + - IPL_VERSION=0.1.1 before_script: - ./test/setup_vendor.sh diff --git a/library/Businessprocess/Test/Bootstrap.php b/library/Businessprocess/Test/Bootstrap.php index 3bd5187..4141c16 100644 --- a/library/Businessprocess/Test/Bootstrap.php +++ b/library/Businessprocess/Test/Bootstrap.php @@ -23,6 +23,7 @@ class Bootstrap Cli::start($testsDir, $configDir) ->getModuleManager() + ->loadModule('ipl', $basedir . '/vendor/ipl') ->loadModule('businessprocess', $basedir); } } diff --git a/test/setup_vendor.sh b/test/setup_vendor.sh index b9b8c45..7d47ff8 100755 --- a/test/setup_vendor.sh +++ b/test/setup_vendor.sh @@ -9,6 +9,8 @@ PHP_VERSION="$(php -r 'echo phpversion();')" ICINGAWEB_VERSION=${ICINGAWEB_VERSION:=2.5.1} ICINGAWEB_GITREF=${ICINGAWEB_GITREF:=} +IPL_VERSION=${IPL_VERSION:=0.1.1} + PHPCS_VERSION=${PHPCS_VERSION:=2.9.1} if [ "$PHP_VERSION" '<' 5.6.0 ]; then @@ -52,6 +54,18 @@ fi ln -svf "${icingaweb_path}"/library/Icinga ln -svf "${icingaweb_path}"/library/vendor/Zend +# ipl +ipl_path="ipl" +if [ ! -d "$ipl_path" ]; then + git clone https://github.com/Icinga/icingaweb2-module-ipl.git "$ipl_path" +fi +( + set -e + cd "$ipl_path" + git fetch -p + git checkout -f "stable/$IPL_VERSION" +) + # phpunit phpunit_path="phpunit-${PHPUNIT_VERSION}" if [ ! -e "${phpunit_path}".phar ]; then