mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
parent
0219c9cef8
commit
83a5ae3def
@ -75,6 +75,16 @@ RUN $PYTHON -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/loc
|
||||
|
||||
ENV WORKON_HOME=/tmp/.venvs
|
||||
|
||||
# download monero tests binary
|
||||
|
||||
ENV TREZOR_MONERO_TESTS_SHA256SUM=140a16b3d6105b5e8e88a93b451e9600a36ed23928ea3cf2f975f9c83f36dab7
|
||||
ENV TREZOR_MONERO_TESTS_URL="https://github.com/ph4r05/monero/releases/download/v0.14.1.0-tests-u14.04-01/trezor_tests"
|
||||
ENV TREZOR_MONERO_TESTS_PATH="/opt/trezor_monero_tests"
|
||||
|
||||
RUN wget "$TREZOR_MONERO_TESTS_URL" -O "$TREZOR_MONERO_TESTS_PATH" \
|
||||
&& chmod +x "$TREZOR_MONERO_TESTS_PATH"
|
||||
RUN echo "${TREZOR_MONERO_TESTS_SHA256SUM} ${TREZOR_MONERO_TESTS_PATH}" | sha256sum -c
|
||||
|
||||
# install python dependencies
|
||||
|
||||
RUN pip install pipenv
|
||||
|
@ -66,6 +66,8 @@ if [[ ! -f "$TREZOR_MONERO_TESTS_PATH" || "`shasum -a256 "$TREZOR_MONERO_TESTS_P
|
||||
curl -L -o "$TREZOR_MONERO_TESTS_PATH" "$TREZOR_MONERO_TESTS_URL" \
|
||||
&& chmod +x "$TREZOR_MONERO_TESTS_PATH" \
|
||||
&& test "`shasum -a256 "$TREZOR_MONERO_TESTS_PATH" | cut -d' ' -f1`" == "$TREZOR_MONERO_TESTS_SHA256SUM" || exit 1
|
||||
else
|
||||
echo "Trezor monero binary with valid hash already present at $TREZOR_MONERO_TESTS_PATH - not downloading again."
|
||||
fi
|
||||
|
||||
echo "Running tests"
|
||||
|
Loading…
Reference in New Issue
Block a user