Skip to content

Commit

Permalink
Use github actions for test (#34)
Browse files Browse the repository at this point in the history
* Create go.yml

* use github actions for test (#35)

* use github actions for test

* use github actions for test
  • Loading branch information
ariesdevil authored Nov 28, 2019
1 parent 8316e32 commit fe3e8da
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: [push, pull_request]
name: GoBeansDB Test
jobs:
test:
strategy:
matrix:
compiler: [gcc]
go-version: [1.12.x, 1.13.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v1

- name: Get test tools
run: go get -u -v golang.org/x/tools/cmd/goimports

- name: Test
env:
CC: ${{ matrix.compiler }}
run: |
export PATH=${PATH}:`go env GOPATH`/bin
diff <(goimports -d .) <(printf "")
go mod vendor
make test
- name: Install
run: make install
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ pytest:install
./tests/run_test.sh

install:
GO111MODULE=on go mod vendor
go install ./
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GoBeansDB [![Build Status](https://travis-ci.org/douban/gobeansdb.svg?branch=master)](https://travis-ci.org/douban/gobeansdb) [![Release](https://img.shields.io/github/v/release/douban/gobeansdb)](https://github.com/douban/gobeansdb/releases)
# GoBeansDB ![](https://github.com/douban/gobeansproxy/workflows/GoBeansDB%20Test/badge.svg) [![Release](https://img.shields.io/github/v/release/douban/gobeansdb)](https://github.com/douban/gobeansdb/releases)

Yet anonther distributed key-value storage system from Douban Inc.

Expand All @@ -20,6 +20,7 @@ GoBeansDB use `go mod` manage dependencies, please make sure your Go version >=
```shell
$ git clone http://github.com/douban/gobeansdb.git
$ cd gobeansdb
$ go mod vendor
$ make
```

Expand Down Expand Up @@ -98,7 +99,7 @@ mc_client --- cache
缺点/注意

1. 一致性支持较弱,时间戳目前是秒级(受限于数据文件格式)。
2. 全内存索引,有一定内存开销,在启动载入索引略慢(约十几秒到半分钟, 决定于key 数量)。
2. 全内存索引,有一定内存开销,在启动时载入索引略慢(约十几秒到半分钟, 决定于key 数量)。
3. 数据文件格式的 padding 对小 value 有一定浪费。


Expand Down

0 comments on commit fe3e8da

Please sign in to comment.