From 4513b40fb395dd99d492b168e93b4bc2d4df638c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Thu, 13 Dec 2018 12:42:23 +0100 Subject: [PATCH] Fix the clone of backend repo See: https://stackoverflow.com/a/20115678 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c76436c1f..d235af859 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,8 @@ before_install: install: - docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-web . - docker-compose -f docker-compose.yml up -d - - git clone --depth=50 https://github.com/Human-Connection/Nitro-Backend.git ../Nitro-Backend - - git --work-tree=../Nitro-Backend checkout $TRAVIS_BRANCH || echo "Branch \`$TRAVIS_BRANCH\` does not exist, falling back to \`master\`" + - git clone https://github.com/Human-Connection/Nitro-Backend.git ../Nitro-Backend + - git -C "../Nitro-Backend" checkout $TRAVIS_BRANCH || echo "Branch \`$TRAVIS_BRANCH\` does not exist, falling back to \`master\`" - docker-compose -f ../Nitro-Backend/docker-compose.yml up -d - yarn global add cypress wait-on - yarn add cypress-cucumber-preprocessor