Clone+install backend at $TRAVIS_BRANCH in build

This commit is contained in:
Robert Schäfer 2018-12-11 18:26:35 +01:00
parent 6f782efbfb
commit 0922e0cfda

View File

@ -19,7 +19,10 @@ before_install:
install:
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-web .
- docker-compose up -d
- 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\`"
- docker-compose -f ../Nitro-Backend/docker-compose.yml up -d
script:
- docker-compose exec webapp yarn run lint