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

ci: fix VERSION export from version.h

This commit is contained in:
Tomas Susanka 2020-07-05 21:38:19 +02:00
parent 82c0c40367
commit 040b4a1ee7

View File

@ -15,7 +15,7 @@ core fw regular build:
- nix-shell --run "pipenv run make -C core build_prodtest"
- nix-shell --run "pipenv run make -C core build_firmware"
- nix-shell --run "pipenv run make -C core sizecheck"
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
- cp core/build/firmware/firmware.bin trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -27,7 +27,7 @@ core fw regular debug build:
stage: build
script:
- nix-shell --run "PYOPT=0 pipenv run make -C core build_firmware"
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -43,7 +43,7 @@ core fw btconly build:
- nix-shell --run "pipenv run make -C core build_firmware"
- mv core/build/firmware/firmware.bin core/build/firmware/firmware-bitcoinonly.bin
- nix-shell --run "pipenv run ./tools/check-bitcoin-only core/build/firmware/firmware-bitcoinonly.bin"
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
- cp core/build/firmware/firmware-bitcoinonly.bin trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -144,7 +144,7 @@ legacy fw regular build:
script:
- nix-shell --run "pipenv run legacy/script/cibuild"
- nix-shell --run "pipenv run make -C legacy/demo"
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
- mv legacy/firmware/trezor.bin trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -159,7 +159,7 @@ legacy fw debug build:
MEMORY_PROTECT: "0"
script:
- nix-shell --run "pipenv run legacy/script/cibuild"
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
- mv legacy/firmware/trezor.bin trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -176,7 +176,7 @@ legacy fw btconly build:
- nix-shell --run "pipenv run legacy/script/cibuild"
- mv legacy/firmware/trezor.bin legacy/firmware/trezor-bitcoinonly.bin
- nix-shell --run "pipenv run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
- mv legacy/firmware/trezor-bitcoinonly.bin trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"