Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Commit

Permalink
chore(release): latest channel is alpha channel
Browse files Browse the repository at this point in the history
this also fixes 0b29068
  • Loading branch information
a-teammate authored and Fohlen committed Nov 2, 2017
1 parent fe3df7b commit 71d3508
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ create_apidoc() {
## increment the version number based on the last tag.
incremented_version()
{
local major_version=`echo -e "${last_tag}" | sed "s/^\(.*\)\\.[0-9]\+\.[0-9]\+@.*$/\1/"`
local minor_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.\(.*\)\.[0-9]\+@.*$/\1/"`
local patch_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.[0-9]\+\.\(.*\)@.*$/\1/"`
local major_version=`echo -e "${last_tag}" | sed "s/^\(.*\)\\.[0-9]\+\.[0-9]\+.*$/\1/"`
local minor_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.\(.*\)\.[0-9]\+.*$/\1/"`
local patch_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.[0-9]\+\.\(.*\).*$/\1/"`


local new_patch_version=$((patch_version+1))
local new_version="$major_version.$minor_version.$new_patch_version@latest"
local new_version="$major_version.$minor_version.$new_patch_version@alpha"
echo $new_version
}

Expand Down

0 comments on commit 71d3508

Please sign in to comment.