mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-17 18:31:11 +00:00
da5bbf715a
When building the `master` image we would previously mistakingly set the ref to the PR commit hash. This surfaced when testing a pull request from a fork. `master` would be pointed at the forks HEAD commit hash, but not the fork URL. Thus the build could not find the commit and would fail. See https://github.com/libp2p/rust-libp2p/pull/3154
44 lines
952 B
TOML
44 lines
952 B
TOML
[metadata]
|
|
name = "rust-cross-versions-{{ $.Env.GitReference }}"
|
|
|
|
[global]
|
|
plan = "libp2p/ping/rust"
|
|
case = "ping"
|
|
builder = "docker:generic"
|
|
runner = "local:docker"
|
|
concurrent_builds = 1
|
|
|
|
{{ with (load_resource "./rust.toml" ) }}
|
|
{{ range .groups }}
|
|
[[groups]]
|
|
id = "{{ .Id }}"
|
|
instances = { count = 1 }
|
|
|
|
[groups.build_config.build_args]
|
|
BINARY_NAME = '{{ .BinaryName }}'
|
|
{{ end }}
|
|
|
|
{{ with .master }}
|
|
[[groups]]
|
|
id = "master"
|
|
instances = { count = 1 }
|
|
|
|
[groups.build_config.build_args]
|
|
BINARY_NAME = '{{ .BinaryName }}'
|
|
GIT_REF = "master"
|
|
{{ end }}
|
|
|
|
{{ if $.Env.GitReference }}
|
|
{{ with .custom }}
|
|
[[groups]]
|
|
id = "custom"
|
|
instances = { count = 1 }
|
|
|
|
[groups.build_config.build_args]
|
|
BINARY_NAME = '{{ .BinaryName }}'
|
|
GIT_TARGET = '{{ $.Env.GitTarget }}'
|
|
GIT_REF = '{{ $.Env.GitReference }}'
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|