mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ci: Update travis matrix and vendor test helpers
This commit is contained in:
parent
91a62ffbee
commit
e6fde04bc3
@ -6,6 +6,7 @@ php:
|
|||||||
- '7.0'
|
- '7.0'
|
||||||
- '7.1'
|
- '7.1'
|
||||||
- '7.2'
|
- '7.2'
|
||||||
|
- '7.3'
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -27,6 +28,7 @@ matrix:
|
|||||||
php: '5.4'
|
php: '5.4'
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly
|
- php: nightly
|
||||||
|
- php: '7.3'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CHECK=phpunit DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
|
- CHECK=phpunit DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
MODULE_HOME=${MODULE_HOME:="$(dirname "$(readlink -f $(dirname "$0"))")"}
|
MODULE_HOME=${MODULE_HOME:="$(dirname "$(readlink -f "$(dirname "$0")")")"}
|
||||||
PHP_VERSION="$(php -r 'echo phpversion();')"
|
PHP_VERSION="$(php -r 'echo phpversion();')"
|
||||||
|
|
||||||
ICINGAWEB_VERSION=${ICINGAWEB_VERSION:=2.5.0}
|
ICINGAWEB_VERSION=${ICINGAWEB_VERSION:=2.6.2}
|
||||||
ICINGAWEB_GITREF=${ICINGAWEB_GITREF:=}
|
ICINGAWEB_GITREF=${ICINGAWEB_GITREF:=}
|
||||||
|
|
||||||
PHPCS_VERSION=${PHPCS_VERSION:=2.9.1}
|
PHPCS_VERSION=${PHPCS_VERSION:=3.3.2}
|
||||||
|
|
||||||
if [ "$PHP_VERSION" '<' 5.6.0 ]; then
|
if [ "$PHP_VERSION" '<' 5.6.0 ]; then
|
||||||
PHPUNIT_VERSION=${PHPUNIT_VERSION:=4.8}
|
PHPUNIT_VERSION=${PHPUNIT_VERSION:=4.8}
|
||||||
@ -16,7 +16,7 @@ else
|
|||||||
PHPUNIT_VERSION=${PHPUNIT_VERSION:=5.7}
|
PHPUNIT_VERSION=${PHPUNIT_VERSION:=5.7}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${MODULE_HOME}
|
cd "${MODULE_HOME}"
|
||||||
|
|
||||||
test -d vendor || mkdir vendor
|
test -d vendor || mkdir vendor
|
||||||
cd vendor/
|
cd vendor/
|
||||||
@ -48,8 +48,8 @@ else
|
|||||||
rm -f icingaweb2
|
rm -f icingaweb2
|
||||||
ln -svf "${icingaweb_path}" icingaweb2
|
ln -svf "${icingaweb_path}" icingaweb2
|
||||||
fi
|
fi
|
||||||
ln -svf "${icingaweb_path}"/library/Icinga
|
ln -svf "${icingaweb_path}"/library/Icinga Icinga
|
||||||
ln -svf "${icingaweb_path}"/library/vendor/Zend
|
ln -svf "${icingaweb_path}"/library/vendor/Zend Zend
|
||||||
|
|
||||||
# phpunit
|
# phpunit
|
||||||
phpunit_path="phpunit-${PHPUNIT_VERSION}"
|
phpunit_path="phpunit-${PHPUNIT_VERSION}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user