Skip to content

Commit 46011d5

Browse files
committed
[#641] Add rc binaries tests
Problem: We need to test binaries that are release candidates Solution: Add tests for rc binaries
1 parent eba5b24 commit 46011d5

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

docker/tests/Dockerfile-fedora-test

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
ARG dist
55
FROM fedora:${dist}
66

7+
ARG package
8+
79
WORKDIR /tezos-packaging/docker
810

911
RUN dnf update -y
1012
RUN dnf install -y python3-devel python3-setuptools 'dnf-command(copr)'
11-
RUN sudo dnf copr enable -y @Serokell/Tezos
13+
RUN sudo dnf copr enable -y @Serokell/${package}
1214

1315
COPY docker/tests/test-fedora-binaries.py /tezos-packaging/docker/tests/test-fedora-binaries.py
1416
CMD [ "python3", "/tezos-packaging/docker/tests/test-fedora-binaries.py", "--no-cleanup" ]

docker/tests/Dockerfile-ubuntu-test

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
ARG dist
55
FROM ubuntu:${dist}
66

7+
ARG package
8+
79
WORKDIR /tezos-packaging/docker
810

911
RUN apt update -y
1012
RUN apt install -y python3-all python3-setuptools software-properties-common
11-
RUN add-apt-repository -yu ppa:serokell/tezos
13+
RUN add-apt-repository -yu ppa:serokell/${package}
1214

1315
COPY docker/tests/test-ubuntu-binaries.py /tezos-packaging/docker/tests/test-ubuntu-binaries.py
1416
CMD [ "python3", "/tezos-packaging/docker/tests/test-ubuntu-binaries.py", "--no-cleanup" ]

docker/tests/scripts/test-fedora-binaries.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# SPDX-License-Identifier: LicenseRef-MIT-OA
55

66
for version in $(jq -r '.fedora[]' docker/supported_versions.json); do
7-
docker build --build-arg dist="$version" -t fedora-test -f docker/tests/Dockerfile-fedora-test .
7+
docker build --build-arg dist="$version" --build-arg package="Tezos" -t fedora-test -f docker/tests/Dockerfile-fedora-test .
8+
docker run fedora-test
9+
docker build --build-arg dist="$version" --build-arg package="Tezos-rc" -t fedora-test -f docker/tests/Dockerfile-fedora-test .
810
docker run fedora-test
911
done

docker/tests/scripts/test-ubuntu-binaries.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
set -e
77

88
for version in $(jq -r '.ubuntu[]' docker/supported_versions.json); do
9-
docker build --build-arg dist="$version" -t ubuntu-test -f docker/tests/Dockerfile-ubuntu-test .
9+
docker build --build-arg dist="$version" --build-arg package="tezos" -t ubuntu-test -f docker/tests/Dockerfile-ubuntu-test .
10+
docker run fedora-test
11+
docker build --build-arg dist="$version" --build-arg package="tezos-rc" -t ubuntu-test -f docker/tests/Dockerfile-ubuntu-test .
1012
docker run ubuntu-test
1113
done

0 commit comments

Comments
 (0)