Fix the clone of backend repo

See: https://stackoverflow.com/a/20115678
This commit is contained in:
Robert Schäfer 2018-12-13 12:42:23 +01:00
parent a40fafa455
commit 4513b40fb3

View File

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