mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-02-17 09:16:41 +00:00
Add nim toml
This commit is contained in:
parent
c8e4b3227e
commit
311e8d4f59
@ -100,10 +100,34 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
[[groups]]
|
||||
id = "nim-latest"
|
||||
instances = { count = 1 }
|
||||
builder = "docker:generic"
|
||||
{{ with (load_resource "./nim.toml") }}
|
||||
{{ with (index .groups 0) }}
|
||||
[[groups]]
|
||||
id = "nim-latest-{{ .Id }}"
|
||||
instances = { count = 1 }
|
||||
builder = "docker:generic"
|
||||
|
||||
[groups.build_config]
|
||||
path = "./nim/"
|
||||
[groups.build_config]
|
||||
path = "./nim/"
|
||||
[groups.build_config.build_args]
|
||||
Libp2pVersion = '{{ .Id }}'
|
||||
NimVersion = '{{ .NimVersion }}'
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $.Env.InteropTarget "nim" }}
|
||||
{{ if $.Env.GitReference }}
|
||||
{{ with .custom }}
|
||||
[[groups]]
|
||||
id = "nim-custom-{{ $.Env.GitReference }}"
|
||||
instances = { count = 1 }
|
||||
builder = "docker:generic"
|
||||
|
||||
[groups.build_config]
|
||||
path = "./nim/"
|
||||
[groups.build_config.build_args]
|
||||
Libp2pVersion = '#{{ $.Env.GitReference }}'
|
||||
NimVersion = '{{ .NimVersion }}'
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
6
ping/_compositions/nim.toml
Normal file
6
ping/_compositions/nim.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[custom]
|
||||
NimVersion = "1.6.8"
|
||||
|
||||
[[groups]]
|
||||
Id = "1.0.0"
|
||||
NimVersion = "1.6.8"
|
@ -1,7 +1,10 @@
|
||||
FROM nimlang/nim:alpine as builder
|
||||
ARG NimVersion="latest"
|
||||
FROM nimlang/nim:${NimVersion}-alpine as builder
|
||||
|
||||
RUN nimble install -y "https://github.com/status-im/testground-nim-sdk@#c282ff68c08ef85a7ca011e077e3e69eb1a6edec"
|
||||
RUN nimble install -y "libp2p"
|
||||
|
||||
ARG Libp2pVersion="#unstable"
|
||||
RUN nimble install -y "libp2p@${Libp2pVersion}"
|
||||
FROM builder
|
||||
|
||||
ARG PLAN_PATH="./"
|
||||
|
Loading…
x
Reference in New Issue
Block a user