From a318f4abe1f291d806fafb772d4b4f2dccd46284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 22 Aug 2018 14:54:18 +0200 Subject: [PATCH] [Travis] Perform full checkout to fix Travis setup (#321) * [Travis] Test commit to see how it works now * [TRAVIS] Perform full checkout when setting up dependency --- bin/.travis/trusty/setup_ezplatform.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/.travis/trusty/setup_ezplatform.sh b/bin/.travis/trusty/setup_ezplatform.sh index 62963c9c92..a98dd41bef 100755 --- a/bin/.travis/trusty/setup_ezplatform.sh +++ b/bin/.travis/trusty/setup_ezplatform.sh @@ -64,9 +64,12 @@ if [[ -n "${DEPENDENCY_PACKAGE_NAME}" ]]; then BASE_PACKAGE_NAME=`basename ${DEPENDENCY_PACKAGE_NAME}` echo "> Move ${DEPENDENCY_PACKAGE_DIR} to ${EZPLATFORM_BUILD_DIR}/${BASE_PACKAGE_NAME}" mv ${DEPENDENCY_PACKAGE_DIR} ${EZPLATFORM_BUILD_DIR}/${BASE_PACKAGE_NAME} + cd ${EZPLATFORM_BUILD_DIR}/${BASE_PACKAGE_NAME} + + # perform full checkout to allow using as local Composer depenency + git fetch --unshallow echo "> Create temporary branch in ${DEPENDENCY_PACKAGE_NAME}" - cd ${EZPLATFORM_BUILD_DIR}/${BASE_PACKAGE_NAME} # reuse HEAD commit id for better knowledge about what got checked out TMP_TRAVIS_BRANCH=tmp_`git rev-parse --short HEAD` git checkout -b ${TMP_TRAVIS_BRANCH}