From 2be4f7c98894d869db0eb466b7ba39575189fbd1 Mon Sep 17 00:00:00 2001 From: Mayank <33252549+mynktl@users.noreply.github.com> Date: Wed, 17 Jul 2019 23:51:09 +0530 Subject: [PATCH] support(travis) : TRAVIS_BRANCH in travis.yaml to determine branch for cstor repo (#24) Signed-off-by: mayank --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6d70690..aa434a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,10 @@ install: - cd .. # we need cstor code - git clone https://github.com/openebs/cstor.git + - cd cstor + - if [ ${TRAVIS_BRANCH} == "master" ]; then git checkout develop; else git checkout ${TRAVIS_BRANCH} || git checkout develop; fi + - git branch + - cd .. # return to libcstor code - cd libcstor - sh autogen.sh @@ -57,7 +61,6 @@ install: - sudo ldconfig - cd .. - cd cstor - - git checkout develop - sh autogen.sh - ./configure --with-config=user --enable-code-coverage=yes --enable-debug --enable-uzfs=yes --with-jemalloc --with-fio=$PWD/../fio --with-libcstor=$PWD/../libcstor/include - make -j4;