Commit 17725edb authored by Kamil Trzciński's avatar Kamil Trzciński

Update VERSION during build

parent 33f3d4a8
......@@ -3,12 +3,16 @@ language: go
go:
- '1.4'
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os="linux" -os="darwin"
- go get github.com/tools/godep
- godep restore
before_script:
- sed -i "s/^const VERSION .*\$/const VERSION = \"${TRAVIS_TAG:-$TRAVIS_BRANCH} ($(git rev-parse --short HEAD))\"/g" src/consts.go
- cat src/consts.go | grep VERSION
script:
- make test
before_deploy:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os="linux" -os="darwin" -os="windows"
- make build
deploy:
provider: releases
......
......@@ -12,7 +12,7 @@ func Main() {
app := cli.NewApp()
app.Name = path.Base(os.Args[0])
app.Usage = "a GitLab-CI Multi Runner"
app.Version = "0.1.0"
app.Version = VERSION
app.Author = "Kamil Trzciński"
app.Email = "ayufan@ayufan.eu"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment