Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencegripper committed Dec 15, 2018
1 parent c4c459a commit dc872c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/usr/bin/env bash
set -e
cd `dirname $0`

VERSION="1.0.$BUILD_NUMBER"
GIT_COMMIT=$(git rev-parse HEAD)
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
GO_VERSION=$(go version | awk '{print $3}')
echo "Building version: $VERSION"


cd `dirname $0`
bash -f ./install.sh
cd ../

dep ensure
gometalinter --vendor --disable-all --enable=vet --enable=gofmt --enable=golint --enable=deadcode --enable=varcheck --enable=structcheck --enable=misspell --deadline=15m ./...

VERSION="1.0.$TRAVIS_BUILD_NUMBER"
GIT_COMMIT=$(git rev-parse HEAD)
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
GO_VERSION=$(go version | awk '{print $3}')

echo "Building version: $VERSION"

platforms=("linux/amd64" "windows/amd64" "windows/386" "darwin/amd64" "linux/386" "linux/arm")

Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package version
// Overridden via ldflags
var (
BuildDataPlatform = "unknown"
BuildDataVersion = "0.0.0-dev"
BuildDataVersion = "devbuild"
BuildDataGitCommit = "unknown"
BuildDataBuildDate = "unknown"
BuildDataGoVersion = "unknown"
Expand Down

0 comments on commit dc872c8

Please sign in to comment.