-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add build tag for integration tests * add unit rule to run unit tests * add unit as phony * improve formatting of each _test file, enable coverate on functional tests * add badge for test results
- Loading branch information
Showing
5 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# nebula-go | ||
|
||
[![Go Reference](https://pkg.go.dev/badge/github.com/vesoft-inc/nebula-go/v3.svg)](https://pkg.go.dev/github.com/vesoft-inc/nebula-go/v3) | ||
![functional tests](https://github.com/vesoft-inc/nebula-go/actions/workflows/test.yaml/badge.svg) | ||
|
||
**IMPORTANT: Code of Nebula go client has been transferred from [nebula-clients](https://github.com/vesoft-inc/nebula-clients) to this repository(nebula-go), and new releases in the future will be published in this repository. | ||
Please update your go.mod and imports correspondingly.** | ||
|
@@ -19,7 +21,6 @@ To Use the console with a stable release of Nebula Graph, please check the branc | |
| **[v3.1.x](https://github.com/vesoft-inc/nebula-go/tree/v3.1.0)** | 3.1.x | | ||
| **[master](https://github.com/vesoft-inc/nebula-go/tree/master)** | 3.x-nightly | | ||
|
||
|
||
Please be careful not to modify the files in the nebula directory, these codes were all generated by fbthrift. | ||
|
||
**NOTE** Installing Nebula Go v2.5.0 could cause **checksum mismatch**, use v2.5.1 instead. | ||
|
@@ -29,18 +30,21 @@ Please be careful not to modify the files in the nebula directory, these codes w | |
```shell | ||
$ go get -u -v github.com/vesoft-inc/nebula-go/v3@master | ||
``` | ||
|
||
You can specify the version of Nebula-go by substituting `<tag>` in `$ go get -u -v github.com/vesoft-inc/nebula-go@<tag>`. | ||
For example: | ||
for v3: `$ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]` | ||
for v2: `$ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]` | ||
For example: | ||
|
||
for v3: `$ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]` | ||
for v2: `$ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]` | ||
|
||
**Note**: You will get a message like this if you don't specify a tag: | ||
> ``` | ||
|
||
> ```shell | ||
> $ go get -u -v github.com/vesoft-inc/nebula-go/v2@master | ||
> go: github.com/vesoft-inc/nebula-go/v2 master => v2.0.0-20210506025434-97d4168c5c4d | ||
> ``` | ||
> Here the ` 20210506025434-97d4168c5c4d` is a version tag auto-generated by Github using commit date and SHA. | ||
> | ||
> Here the `20210506025434-97d4168c5c4d` is a version tag auto-generated by Github using commit date and SHA. | ||
> This should match the latest commit in the master branch. | ||
## Usage example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//go:build integration | ||
// +build integration | ||
|
||
/* | ||
* | ||
* Copyright (c) 2020 vesoft inc. All rights reserved. | ||
|