Skip to content

Commit

Permalink
chore(travis): updating travis file according to new release format (#60
Browse files Browse the repository at this point in the history
)

updating travis file according to new release format

Signed-off-by: mayank <[email protected]>
  • Loading branch information
mynktl authored Apr 8, 2020
1 parent 1cd8f21 commit 3b4998b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@ script:
- make container
- kubectl cluster-info
- |
vR=`echo $TRAVIS_BRANCH |awk -F 'velero_' '{print $2}'`
if [ -z $TRAVIS_BRANCH ] || [ $TRAVIS_BRANCH == "master" ] || [ -z $vR ]; then
export VELERO_RELEASE=v1.0.0
# In travis we use openebs operator from openebs/openebs:master only.
export OPENEBS_RELEASE="master"
else
export VELERO_RELEASE=v${vR}
oR=`echo $TRAVIS_BRANCH |awk -F '-' '{print $1}'`
export OPENEBS_RELEASE=${oR}
fi
export VELERO_RELEASE=v1.0.0
# In travis we use openebs operator from openebs/openebs:master only.
export OPENEBS_RELEASE=master
#if [ ! -z $TRAVIS_TAG ]; then
# export OPENEBS_RELEASE=${TRAVIS_TAG}
#else
# export OPENEBS_RELEASE=master
#fi
- ./script/install-openebs.sh
- ./script/install-velero.sh
- travis_wait make test
Expand Down

0 comments on commit 3b4998b

Please sign in to comment.