Skip to content

Commit

Permalink
Update build version (#3)
Browse files Browse the repository at this point in the history
* Update build version

Update travis build.

* Remove verbose log output

Disable docker upload.

* Add image

* Global vars

* Run one test at the time.

* Remove 386 test
  • Loading branch information
klauspost authored and zvymazal committed Nov 5, 2019
1 parent 7bf9055 commit 4b6d39c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ data/
# Capistrano related
.bundle
/.idea
/conf/conf.toml
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@ os:
- osx

go:
- 1.11.x
- 1.12.x
- 1.13.x
- master

env:
- GO111MODULE=on
# needed for docker deploy:
- DOCKER_USER=vivino
global:
- DOCKER_USER=vivino
- GO111MODULE=on

# needed for the docker pipe
services:
- docker


script:
- diff <(gofmt -d .) <(printf "")
- go test -v ./...
- go test -cpu=1,2,4 -short -race ./...
- GOOS=linux GOARCH=386 go install ./...
- go test ./...
- go test -cpu=1 -short -race ./...
- go test -cpu=4 -short -race ./...

matrix:
allow_failures:
Expand All @@ -35,7 +34,7 @@ matrix:
after_success:
# docker login is required if you want to push docker images.
# DOCKER_PASSWORD should be a secret in your .travis.yml configuration.
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
# - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"

# calls goreleaser
deploy:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# RankDB

[![Build Status](https://travis-ci.com/Vivino/rankdb.svg?branch=master)](https://travis-ci.com/Vivino/rankdb)


RankDB is a fast and scalable ranking system optimized for realtime ranking of various metrics.

The system will provide _ranking_ of elements based on a _score_.
Expand Down Expand Up @@ -492,7 +495,7 @@ and this server will only need the public key to validate the request.
# Go Client
An autogenerated client for Go is provided in `github.com/Vivino/rankdb/api/client`.
An autogenerated client for Go is provided in [`github.com/Vivino/rankdb/api/client`](https://godoc.org/github.com/Vivino/rankdb/api/client).
You can choose to use this instead of regular HTTP calls.
The client provides structs with predefined data types.
Expand Down
2 changes: 1 addition & 1 deletion api/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func randElements(n int, seed ...int64) []*client.Element {
return res
}

// randElements will generate a list with n random elements.
// createList will generate a list with n random elements.
// All elements will have ID and score above 10000.
func createList(t *testing.T, id string, elements int) {
t.Helper()
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ require (
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
gopkg.in/ini.v1 v1.42.0 // indirect
)

go 1.13
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z
github.com/google/go-cmp v0.0.0-20170718200728-1a281611eb75 h1:Oyw6MutdG2pt1zG4XxI+QLJrGd+3RqavRzwNiXRwv/8=
github.com/google/go-cmp v0.0.0-20170718200728-1a281611eb75/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-github/v25 v25.0.1 h1:s405kPD52lKa1MVxiEumod/E6/+0pvQ8Ed/sT65DjKc=
github.com/google/go-github/v25 v25.0.1/go.mod h1:6z5pC69qHtrPJ0sXPsj4BLnd82b+r6sLB7qcBoRZqpw=
Expand Down

0 comments on commit 4b6d39c

Please sign in to comment.