test: Integrate icingaweb2-module-ipl as dependency

refs #130
This commit is contained in:
Johannes Meyer 2019-01-17 13:46:23 +01:00
parent d195b78886
commit dc169cb6a8
3 changed files with 16 additions and 0 deletions

View file

@ -21,6 +21,7 @@ cache:
env:
- ICINGAWEB_VERSION=2.5.1
- IPL_VERSION=0.1.1
before_script:
- ./test/setup_vendor.sh

View file

@ -23,6 +23,7 @@ class Bootstrap
Cli::start($testsDir, $configDir)
->getModuleManager()
->loadModule('ipl', $basedir . '/vendor/ipl')
->loadModule('businessprocess', $basedir);
}
}

View file

@ -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