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

ci(nix): don't use cached-nix-shell for arm builds and hw tests

This commit is contained in:
Martin Milata 2023-02-09 10:12:03 +01:00
parent 1e4b42792d
commit 7fb357dac6
2 changed files with 13 additions and 13 deletions

View File

@ -264,7 +264,7 @@ core unix frozen debug build arm:
variables: variables:
PYOPT: "0" PYOPT: "0"
script: script:
- cached-nix-shell --run "poetry run make -C core build_unix_frozen" - nix-shell --run "poetry run make -C core build_unix_frozen"
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-arm - mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-arm
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -447,7 +447,7 @@ legacy emu regular debug build arm:
DEBUG_LINK: "1" DEBUG_LINK: "1"
EMULATOR: "1" EMULATOR: "1"
script: script:
- cached-nix-shell --run "poetry run legacy/script/cibuild" - nix-shell --run "poetry run legacy/script/cibuild"
- mv legacy/firmware/trezor.elf legacy/firmware/trezor-arm.elf - mv legacy/firmware/trezor.elf legacy/firmware/trezor-arm.elf
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"

View File

@ -41,9 +41,9 @@ hardware core regular device test:
- set -a - set -a
- source hardware.cfg - source hardware.cfg
- set +a - set +a
- cached-nix-shell --run "cd ../.. && poetry install" - nix-shell --run "cd ../.. && poetry install"
- cached-nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s" - nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s"
- cached-nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s" - nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s"
timeout: 6h timeout: 6h
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -71,9 +71,9 @@ hardware core btconly device test:
- set -a - set -a
- source hardware.cfg - source hardware.cfg
- set +a - set +a
- cached-nix-shell --run "cd ../.. && poetry install" - nix-shell --run "cd ../.. && poetry install"
- cached-nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s" - nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s"
- cached-nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s" - nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s"
timeout: 4h timeout: 4h
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -98,9 +98,9 @@ hardware core monero test:
- set -a - set -a
- source hardware.cfg - source hardware.cfg
- set +a - set +a
- cached-nix-shell --run "cd ../.. && poetry install" - nix-shell --run "cd ../.. && poetry install"
- cached-nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s" - nix-shell --run "poetry run python bootstrap.py tt ../../firmware-T2*.bin | ts -s"
- cached-nix-shell --arg fullDeps true --run "cd ../../core/tests && ./run_tests_device_emu_monero.sh $TESTOPTS | ts -s" - nix-shell --arg fullDeps true --run "cd ../../core/tests && ./run_tests_device_emu_monero.sh $TESTOPTS | ts -s"
timeout: 1h timeout: 1h
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -124,7 +124,7 @@ hardware legacy regular device test:
- legacy fw regular debug build - legacy fw regular debug build
script: script:
- cd ci/hardware_tests - cd ci/hardware_tests
- cached-nix-shell --run "./t1_hw_test.sh | ts -s" - nix-shell --run "./t1_hw_test.sh | ts -s"
timeout: 1h10m timeout: 1h10m
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
@ -150,7 +150,7 @@ hardware legacy btconly device test:
- legacy fw btconly debug build - legacy fw btconly debug build
script: script:
- cd ci/hardware_tests - cd ci/hardware_tests
- cached-nix-shell --run "./t1_hw_test.sh | ts -s" - nix-shell --run "./t1_hw_test.sh | ts -s"
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths: paths: