File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,10 @@ before_install:
1717 - echo GET CONFIG FROM GIT
1818 - export CURRENT_VERSION=$(git describe --tag --always --long | sed -e 's/\(.*\)-\(.*\)-.*/\1.\2/')
1919 - declare -a CURRENT_VERSION_ARRAY="(${CURRENT_VERSION//./ })"; export SEMVER_MAJOR=${CURRENT_VERSION_ARRAY[0]}; export SEMVER_MINOR=${CURRENT_VERSION_ARRAY[1]}; export SEMVER_PATCH=${CURRENT_VERSION_ARRAY[2]}; export SEMVER_BUILD=${CURRENT_VERSION_ARRAY[-1]}
20+ - export SEMVER_BUILD=$(( ${SEMVER_PATCH} + ${SEMVER_BUILD} ))
2021 - echo SEMVER_MAJOR:${SEMVER_MAJOR}
2122 - echo SEMVER_MINOR:${SEMVER_MINOR}
22- - echo SEMVER_BUILD:$(( ${SEMVER_PATCH} + ${ SEMVER_BUILD} ))
23+ - echo SEMVER_BUILD:${ SEMVER_BUILD}
2324 - export SEMVER=${SEMVER_MAJOR}.${SEMVER_MINOR}.${SEMVER_BUILD}
2425 - echo SEMVER:$SEMVER
2526 - if [[ ${SEMVER_MAJOR} == "" ]]; then travis_terminate 1; fi
You can’t perform that action at this time.
0 commit comments