Skip to content

Commit

Permalink
Merge branch 'release/0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Jun 2, 2017
2 parents 29afa26 + 333ba7c commit 8e8da7c
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.5.2 (June 2, 2017)

BUG FIXES:
- fix parsing of the log level from Tendermint config (#97)

## 0.5.1 (May 30, 2017)

BUG FIXES:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ build:
install:
go install ./cmd/...

dist:
@ sudo bash scripts/dist.sh
@ bash scripts/publish.sh

test:
go test `${NOVENDOR}`
#go run tests/tendermint/*.go
Expand Down
7 changes: 2 additions & 5 deletions cmd/commands/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/tendermint/abci/server"
eyes "github.com/tendermint/merkleeyes/client"
"github.com/tendermint/tmlibs/cli"
cliflags "github.com/tendermint/tmlibs/cli/flags"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/log"

"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/node"
Expand Down Expand Up @@ -139,13 +139,10 @@ func startTendermint(dir string, basecoinApp *app.Basecoin) error {
return err
}

// TODO: parse the log level from the config properly (multi modules)
// but some tm code must be refactored for better usability
lvl, err := log.AllowLevel(cfg.LogLevel)
tmLogger, err := cliflags.ParseLogLevel(cfg.LogLevel, logger, config.DefaultConfig().LogLevel)
if err != nil {
return err
}
tmLogger := log.NewFilter(logger, lvl)

// Create & start tendermint node
privValidator := types.LoadOrGenPrivValidator(cfg.PrivValidatorFile(), tmLogger)
Expand Down
33 changes: 16 additions & 17 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import:
version: ~0.2.0
subpackages:
- cli
- cli/flags
- common
- events
- log
Expand Down
7 changes: 0 additions & 7 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that dir because we expect that.
cd "$DIR"

# Generate the tag.
if [ -z "$NOTAG" ]; then
echo "==> Tagging..."
git commit --allow-empty -a -m "Release v$VERSION"
git tag -a -m "Version $VERSION" "v${VERSION}" master
fi

# Do a hermetic build inside a Docker container.
docker build -t tendermint/${REPO_NAME}-builder scripts/${REPO_NAME}-builder/
docker run --rm -e "BUILD_TAGS=$BUILD_TAGS" -v "$(pwd)":/go/src/github.com/tendermint/${REPO_NAME} tendermint/${REPO_NAME}-builder ./scripts/dist_build.sh
Expand Down
7 changes: 7 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

# Get the version from the environment, or try to figure it out.
if [ -z $VERSION ]; then
VERSION=$(awk -F\" '/Version =/ { print $2; exit }' < version/version.go)
fi
aws s3 cp --recursive build/dist s3://tendermint/binaries/basecoin/v${VERSION} --acl public-read
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package version

const Maj = "0"
const Min = "5"
const Fix = "1"
const Fix = "2"

const Version = "0.5.1"
const Version = "0.5.2"

0 comments on commit 8e8da7c

Please sign in to comment.