Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Feb 1, 2019
1 parent d1455c3 commit e9c306e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ language: go
go:
- 1.11.x
before_install:
- export VERSION=$(git describe --abbrev=0 --tags)
- ./bumpver.sh
- export VERSION=$NEW_VERSION
install:
- go mod download
script:
Expand Down
7 changes: 2 additions & 5 deletions bumpver.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash
export LAST_VERSION=$(git describe --abbrev=0 --tags)
echo $LAST_VERSION

export LAST_PREFIX=$(cut -d'.' -f1,2 <<< $LAST_VERSION)
export LAST_PREFIX=$(cut -d'.' -f1,2 <<< $VERSION)
echo $LAST_PREFIX

export LAST_SUFFIX=$(cut -d'.' -f3 <<< $LAST_VERSION)
export LAST_SUFFIX=$(cut -d'.' -f3 <<< $VERSION)
echo $LAST_SUFFIX

export NEW_SUFFIX=$(expr "$LAST_SUFFIX" + 1)
Expand Down

0 comments on commit e9c306e

Please sign in to comment.