ci: Update travis and vendor test helpers

Requires:
* #3634
* https://github.com/Icinga/icingaweb2-vendor-zf1/pull/2
This commit is contained in:
Markus Frosch 2018-11-27 11:30:45 +01:00
parent 5f52871b61
commit 6e04f3e775
2 changed files with 8 additions and 7 deletions

View File

@ -7,6 +7,7 @@ php:
- '7.0' - '7.0'
- '7.1' - '7.1'
- '7.2' - '7.2'
- '7.3'
- nightly - nightly
matrix: matrix:

View File

@ -2,13 +2,13 @@
set -ex set -ex
ICINGAWEB_HOME=${ICINGAWEB_HOME:="$(dirname "$(readlink -f $(dirname "$0"))")"} ICINGAWEB_HOME=${ICINGAWEB_HOME:="$(dirname "$(readlink -f "$(dirname "$0")")")"}
PHPCS_VERSION=${PHPCS_VERSION:=3.0.2} PHPCS_VERSION=${PHPCS_VERSION:=3.3.2}
MOCKERY_VERSION=${MOCKERY_VERSION:=0.9.9} MOCKERY_VERSION=${MOCKERY_VERSION:=0.9.9}
HAMCREST_VERSION=${HAMCREST_VERSION:=2.0.0} HAMCREST_VERSION=${HAMCREST_VERSION:=2.0.0}
PHPUNIT_VERSION=${PHPUNIT_VERSION:=5.7} PHPUNIT_VERSION=${PHPUNIT_VERSION:=5.7}
cd ${ICINGAWEB_HOME} cd "${ICINGAWEB_HOME}"
test -d vendor || mkdir vendor test -d vendor || mkdir vendor
@ -42,8 +42,8 @@ fi
if [ ! -d "${mockery_path}" ]; then if [ ! -d "${mockery_path}" ]; then
tar xf "${mockery_path}".tar.gz -C vendor/ tar xf "${mockery_path}".tar.gz -C vendor/
fi fi
ln -svf "${mockery_path}"/library/Mockery ln -svf "${mockery_path}"/library/Mockery Mockery
ln -svf "${mockery_path}"/library/Mockery.php ln -svf "${mockery_path}"/library/Mockery.php Mockery.php
# hamcrest # hamcrest
hamcrest_path="vendor/hamcrest-php-${HAMCREST_VERSION}" hamcrest_path="vendor/hamcrest-php-${HAMCREST_VERSION}"
@ -54,5 +54,5 @@ fi
if [ ! -d "${hamcrest_path}" ]; then if [ ! -d "${hamcrest_path}" ]; then
tar xf "${hamcrest_path}".tar.gz -C vendor/ tar xf "${hamcrest_path}".tar.gz -C vendor/
fi fi
ln -svf "${hamcrest_path}"/hamcrest/Hamcrest ln -svf "${hamcrest_path}"/hamcrest/Hamcrest Hamcrest
ln -svf "${hamcrest_path}"/hamcrest/Hamcrest.php ln -svf "${hamcrest_path}"/hamcrest/Hamcrest.php Hamcrest.php