Skip to content

Commit

Permalink
fix(travis): clone relevant libcstor based on base path (openzfs#323)
Browse files Browse the repository at this point in the history
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
sai chaithanya authored and kmova committed Sep 14, 2020
1 parent 07de45e commit 742a8f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ install:
sudo dpkg -i *.deb;
fi
- cd ..
# Clone and build libcstor for uzfs feature
- git clone https://github.com/openebs/libcstor.git
# Get base name from where we need to download libcstor
- repo_org=${PWD##*/}
# Build libcstor for uzfs feature
- git clone https://github.com/${repo_org}/libcstor.git
- cd libcstor
- if [ ${TRAVIS_BRANCH} == "develop" ]; then git checkout master; else git checkout ${TRAVIS_BRANCH} || git checkout master; fi
- sh autogen.sh;
Expand Down

0 comments on commit 742a8f0

Please sign in to comment.