CI tests
This commit is contained in:
parent
f5efc25161
commit
f4d3d012fb
|
@ -13,7 +13,6 @@ import tracker
|
|||
import state
|
||||
|
||||
import std/[times]
|
||||
import std/sequtils
|
||||
import std/random
|
||||
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import types
|
||||
import std/sequtils
|
||||
import std/[times]
|
||||
|
||||
type
|
|
@ -14,7 +14,7 @@ version = "0.0.1"
|
|||
author = "Status Research & Development GmbH"
|
||||
description = "raft consensus in nim"
|
||||
license = "Apache License 2.0"
|
||||
srcDir = "src"
|
||||
srcDir = "libs"
|
||||
installExt = @["nim"]
|
||||
skipDirs = @["tests"]
|
||||
bin = @["raft"]
|
||||
|
|
|
@ -12,7 +12,7 @@ proc buildLibrary(name: string, srcDir = "./", params = "", `type` = "static") =
|
|||
|
||||
|
||||
task build, "Build static lib":
|
||||
buildLibrary "nim-raft", "src/raft/"
|
||||
buildLibrary "nim-raft", "libs/raft/"
|
||||
|
||||
task test, "Run tests":
|
||||
exec "nim c -r tests/test_consensus_state_machine.nim "
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
# those terms.
|
||||
|
||||
import unittest2
|
||||
import ../src/raft/types
|
||||
import ../src/raft/consensus_state_machine
|
||||
import ../src/raft/log
|
||||
import ../src/raft/tracker
|
||||
import ../src/raft/state
|
||||
import ../libs/raft/types
|
||||
import ../libs/raft/consensus_state_machine
|
||||
import ../libs/raft/log
|
||||
import ../libs/raft/tracker
|
||||
import ../libs/raft/state
|
||||
import std/[times, sequtils]
|
||||
import uuids
|
||||
import tables
|
||||
|
|
Loading…
Reference in New Issue