47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
name = "lotus-testground"
|
|
|
|
[defaults]
|
|
builder = "exec:go"
|
|
runner = "local:exec"
|
|
|
|
[builders."docker:go"]
|
|
enabled = true
|
|
|
|
[builders."docker:go".dockerfile_extensions]
|
|
pre_mod_download = """
|
|
RUN apt-get update && apt-get install -y ca-certificates llvm clang mesa-opencl-icd ocl-icd-opencl-dev jq
|
|
ARG LOTUS_VERSION=master
|
|
RUN git clone https://github.com/filecoin-project/lotus.git ${PLAN_DIR}/../lotus && cd ${PLAN_DIR}/../lotus && git checkout ${LOTUS_VERSION} && git submodule update --init && make 2k
|
|
RUN cd ${PLAN_DIR}/../lotus/extern/filecoin-ffi \
|
|
&& make \
|
|
&& mkdir /tmp/filecoin-ffi \
|
|
&& cp -R ${PLAN_DIR}/../lotus/extern/filecoin-ffi /tmp
|
|
"""
|
|
|
|
pre_runtime_copy = """
|
|
COPY --from=builder /usr/lib/x86_64-linux-gnu/* /lib/x86_64-linux-gnu/* /usr/lib/
|
|
"""
|
|
|
|
[builders."exec:go"]
|
|
enabled = true
|
|
|
|
[runners."local:docker"]
|
|
enabled = true
|
|
|
|
[runners."local:exec"]
|
|
enabled = true
|
|
|
|
[runners."cluster:swarm"]
|
|
enabled = true
|
|
|
|
[runners."cluster:k8s"]
|
|
enabled = true
|
|
|
|
# seq 0
|
|
[[testcases]]
|
|
name = "lotus-network"
|
|
instances = { min = 2, max = 2, default = 2 }
|
|
|
|
[testcases.params]
|
|
miner-count = { type = "int", default = 1 }
|