1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

build: Use pipenv in docker build (#412)

This commit is contained in:
Karel Bílek 2018-09-20 00:44:35 +07:00 committed by Pavol Rusnak
parent 8fb6beb314
commit 2a1e4c7ab6
2 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,7 @@ RUN curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_V
# use zipfile module to extract files world-readable
RUN python3 -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
RUN pip3 install "protobuf==${PROTOBUF_VERSION}" ecdsa
RUN pip3 install pipenv
RUN ln -s python3 /usr/bin/python

View File

@ -3,6 +3,10 @@
# script/build: Build the TREZOR firmware in a clean working tree.
#
# this needs to be there, otherwise python click installer vomits an error
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
set -eu
cd "$(dirname "$0")/.."
@ -34,7 +38,7 @@ worktree_setup() {
worktree_build() {
local path="$1"
( cd "$path" && script/cibuild )
( cd "$path" && pipenv install && pipenv run script/cibuild )
}
worktree_copy() {