mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
ci: replace 'dependends' with 'needs'
https://docs.gitlab.com/ee/ci/yaml/#needs
This commit is contained in:
parent
6319fcfe4a
commit
13c11e756e
16
ci/build.yml
16
ci/build.yml
@ -8,6 +8,7 @@ variables:
|
|||||||
|
|
||||||
core fw regular build:
|
core fw regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core build_boardloader"
|
- nix-shell --run "pipenv run make -C core build_boardloader"
|
||||||
- nix-shell --run "pipenv run make -C core build_bootloader"
|
- nix-shell --run "pipenv run make -C core build_bootloader"
|
||||||
@ -23,6 +24,7 @@ core fw regular build:
|
|||||||
|
|
||||||
core fw regular debug build:
|
core fw regular debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "PYOPT=0 pipenv run make -C core build_firmware"
|
- nix-shell --run "PYOPT=0 pipenv run make -C core build_firmware"
|
||||||
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
@ -34,6 +36,7 @@ core fw regular debug build:
|
|||||||
|
|
||||||
core fw btconly build:
|
core fw btconly build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
script:
|
script:
|
||||||
@ -49,6 +52,7 @@ core fw btconly build:
|
|||||||
|
|
||||||
core fw btconly t1 build:
|
core fw btconly t1 build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
TREZOR_MODEL: "1"
|
TREZOR_MODEL: "1"
|
||||||
@ -63,6 +67,7 @@ core fw btconly t1 build:
|
|||||||
|
|
||||||
core unix regular build:
|
core unix regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core build_unix"
|
- nix-shell --run "pipenv run make -C core build_unix"
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -74,6 +79,7 @@ core unix regular build:
|
|||||||
|
|
||||||
core unix frozen regular build:
|
core unix frozen regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core build_unix_frozen"
|
- nix-shell --run "pipenv run make -C core build_unix_frozen"
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -84,6 +90,7 @@ core unix frozen regular build:
|
|||||||
|
|
||||||
core unix frozen btconly debug build:
|
core unix frozen btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
PYOPT: "0"
|
PYOPT: "0"
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -98,6 +105,7 @@ core unix frozen btconly debug build:
|
|||||||
|
|
||||||
core unix frozen debug build:
|
core unix frozen debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
PYOPT: "0"
|
PYOPT: "0"
|
||||||
script:
|
script:
|
||||||
@ -109,6 +117,7 @@ core unix frozen debug build:
|
|||||||
|
|
||||||
core unix frozen regular darwin:
|
core unix frozen regular darwin:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
tags:
|
tags:
|
||||||
- darwin
|
- darwin
|
||||||
when: manual
|
when: manual
|
||||||
@ -129,6 +138,7 @@ core unix frozen regular darwin:
|
|||||||
|
|
||||||
crypto build:
|
crypto build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- ci/**/*
|
- ci/**/*
|
||||||
@ -149,6 +159,7 @@ crypto build:
|
|||||||
|
|
||||||
legacy fw regular build:
|
legacy fw regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
MEMORY_PROTECT: "0"
|
MEMORY_PROTECT: "0"
|
||||||
script:
|
script:
|
||||||
@ -163,6 +174,7 @@ legacy fw regular build:
|
|||||||
|
|
||||||
legacy fw regular debug build:
|
legacy fw regular debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
MEMORY_PROTECT: "0"
|
MEMORY_PROTECT: "0"
|
||||||
@ -177,6 +189,7 @@ legacy fw regular debug build:
|
|||||||
|
|
||||||
legacy fw btconly build:
|
legacy fw btconly build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
MEMORY_PROTECT: "0"
|
MEMORY_PROTECT: "0"
|
||||||
@ -193,6 +206,7 @@ legacy fw btconly build:
|
|||||||
|
|
||||||
legacy fw btconly debug build:
|
legacy fw btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
MEMORY_PROTECT: "0"
|
MEMORY_PROTECT: "0"
|
||||||
@ -209,6 +223,7 @@ legacy fw btconly debug build:
|
|||||||
|
|
||||||
legacy emu regular build:
|
legacy emu regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
EMULATOR: "1"
|
EMULATOR: "1"
|
||||||
@ -222,6 +237,7 @@ legacy emu regular build:
|
|||||||
|
|
||||||
legacy emu btconly build:
|
legacy emu btconly build:
|
||||||
stage: build
|
stage: build
|
||||||
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
|
@ -7,8 +7,7 @@ release core fw regular deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core fw regular build"]
|
||||||
- core fw regular build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
||||||
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -27,8 +26,7 @@ release core fw btconly deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core fw btconly build"]
|
||||||
- core fw btconly build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
||||||
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -47,8 +45,7 @@ release legacy fw regular deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw regular build"]
|
||||||
- legacy fw regular build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -67,8 +64,7 @@ release legacy fw btconly deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw btconly build"]
|
||||||
- legacy fw btconly build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -87,8 +83,7 @@ release core fw regular debug deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core fw regular debug build"]
|
||||||
- core fw regular debug build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
||||||
- export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -107,8 +102,7 @@ release legacy fw regular debug deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw regular debug build"]
|
||||||
- legacy fw regular debug build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
- export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -127,8 +121,7 @@ release legacy fw btconly debug deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_DIRECTORY: "releases/firmwares"
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw btconly debug build"]
|
||||||
- legacy fw btconly debug build
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
- export NAME="trezor-fw-btconly-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
- export NAME="trezor-fw-btconly-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
||||||
@ -148,8 +141,7 @@ release legacy fw btconly debug deploy:
|
|||||||
rc core fw regular deploy:
|
rc core fw regular deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core fw regular build"]
|
||||||
- core fw regular build
|
|
||||||
script:
|
script:
|
||||||
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
||||||
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
||||||
@ -165,8 +157,7 @@ rc core fw regular deploy:
|
|||||||
rc core fw btconly deploy:
|
rc core fw btconly deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core fw btconly build"]
|
||||||
- core fw btconly build
|
|
||||||
script:
|
script:
|
||||||
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
||||||
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
||||||
@ -182,8 +173,7 @@ rc core fw btconly deploy:
|
|||||||
rc legacy fw regular deploy:
|
rc legacy fw regular deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw regular build"]
|
||||||
- legacy fw regular build
|
|
||||||
script:
|
script:
|
||||||
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
@ -199,8 +189,7 @@ rc legacy fw regular deploy:
|
|||||||
rc legacy fw btconly deploy:
|
rc legacy fw btconly deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy fw btconly build"]
|
||||||
- legacy fw btconly build
|
|
||||||
script:
|
script:
|
||||||
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
||||||
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
||||||
@ -220,8 +209,7 @@ upgrade tests core deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
script:
|
script:
|
||||||
- TAG=`git tag --points-at HEAD | grep "core" | sed "s/\//-/"`
|
- TAG=`git tag --points-at HEAD | grep "core" | sed "s/\//-/"`
|
||||||
- "[[ $TAG == '' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
|
- "[[ $TAG == '' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
|
||||||
@ -240,8 +228,7 @@ upgrade tests legacy deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["legacy emu regular build"]
|
||||||
- legacy emu regular build
|
|
||||||
script:
|
script:
|
||||||
- TAG=`git tag --points-at HEAD | grep "legacy" | sed "s/\//-/"`
|
- TAG=`git tag --points-at HEAD | grep "legacy" | sed "s/\//-/"`
|
||||||
- "[[ $TAG == '' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
|
- "[[ $TAG == '' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
|
||||||
@ -262,8 +249,7 @@ ui tests core fixtures deploy:
|
|||||||
variables:
|
variables:
|
||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/ui_tests/"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/ui_tests/"
|
||||||
before_script: [] # no pipenv
|
before_script: [] # no pipenv
|
||||||
dependencies:
|
needs: ["core device ui test"]
|
||||||
- core device ui test
|
|
||||||
script:
|
script:
|
||||||
- echo "Deploying to $DEPLOY_PATH"
|
- echo "Deploying to $DEPLOY_PATH"
|
||||||
- rsync --delete -va ci/ui_test_records/* "$DEPLOY_PATH"
|
- rsync --delete -va ci/ui_test_records/* "$DEPLOY_PATH"
|
||||||
|
@ -2,11 +2,7 @@ image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-en
|
|||||||
|
|
||||||
core unix coverage posttest:
|
core unix coverage posttest:
|
||||||
stage: posttest
|
stage: posttest
|
||||||
dependencies:
|
needs: ["core device test", "core monero test", "core u2f test", "core fido2 test"]
|
||||||
- core device test
|
|
||||||
- core monero test
|
|
||||||
- core u2f test
|
|
||||||
- core fido2 test
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core res" # we need to regenerate resources.py
|
- nix-shell --run "pipenv run make -C core res" # we need to regenerate resources.py
|
||||||
- nix-shell --run "pipenv run make -C core coverage"
|
- nix-shell --run "pipenv run make -C core coverage"
|
||||||
@ -22,8 +18,7 @@ core unix ui changes:
|
|||||||
stage: posttest
|
stage: posttest
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
dependencies:
|
needs: ["core device ui test"]
|
||||||
- core device ui test
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "cd tests/ui_tests ; pipenv run python reporting/report_master_diff.py"
|
- nix-shell --run "cd tests/ui_tests ; pipenv run python reporting/report_master_diff.py"
|
||||||
- mv tests/ui_tests/reporting/reports/master_diff/ .
|
- mv tests/ui_tests/reporting/reports/master_diff/ .
|
||||||
|
52
ci/test.yml
52
ci/test.yml
@ -4,15 +4,13 @@ image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-en
|
|||||||
|
|
||||||
core unit test:
|
core unit test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix regular build"]
|
||||||
- core unix regular build
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core test"
|
- nix-shell --run "pipenv run make -C core test"
|
||||||
|
|
||||||
core device ui test:
|
core device ui test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core test_emu_ui"
|
- nix-shell --run "pipenv run make -C core test_emu_ui"
|
||||||
after_script:
|
after_script:
|
||||||
@ -33,8 +31,7 @@ core device ui test:
|
|||||||
|
|
||||||
core device test:
|
core device test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_PROFILING: 1
|
TREZOR_PROFILING: 1
|
||||||
script:
|
script:
|
||||||
@ -53,8 +50,7 @@ core device test:
|
|||||||
|
|
||||||
core btconly device test:
|
core btconly device test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen btconly debug build"]
|
||||||
- core unix frozen btconly debug build
|
|
||||||
variables:
|
variables:
|
||||||
MICROPYTHON: "build/unix/trezor-emu-core-bitcoinonly"
|
MICROPYTHON: "build/unix/trezor-emu-core-bitcoinonly"
|
||||||
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
||||||
@ -72,8 +68,7 @@ core btconly device test:
|
|||||||
|
|
||||||
core monero test:
|
core monero test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_PROFILING: 1
|
TREZOR_PROFILING: 1
|
||||||
script:
|
script:
|
||||||
@ -89,8 +84,7 @@ core monero test:
|
|||||||
|
|
||||||
core u2f test:
|
core u2f test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_PROFILING: 1
|
TREZOR_PROFILING: 1
|
||||||
script:
|
script:
|
||||||
@ -107,8 +101,7 @@ core u2f test:
|
|||||||
|
|
||||||
core fido2 test:
|
core fido2 test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_PROFILING: 1
|
TREZOR_PROFILING: 1
|
||||||
script:
|
script:
|
||||||
@ -129,8 +122,7 @@ core fido2 test:
|
|||||||
|
|
||||||
core click test:
|
core click test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C core test_emu_click"
|
- nix-shell --run "pipenv run make -C core test_emu_click"
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -145,8 +137,7 @@ core click test:
|
|||||||
|
|
||||||
core upgrade test:
|
core upgrade test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_UPGRADE_TEST: "core"
|
TREZOR_UPGRADE_TEST: "core"
|
||||||
script:
|
script:
|
||||||
@ -163,8 +154,7 @@ core upgrade test:
|
|||||||
|
|
||||||
core persistence test:
|
core persistence test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["core unix frozen debug build"]
|
||||||
- core unix frozen debug build
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run pytest --junitxml=tests/junit.xml tests/persistence_tests"
|
- nix-shell --run "pipenv run pytest --junitxml=tests/junit.xml tests/persistence_tests"
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -185,8 +175,7 @@ crypto test:
|
|||||||
changes:
|
changes:
|
||||||
- ci/**/*
|
- ci/**/*
|
||||||
- crypto/**/*
|
- crypto/**/*
|
||||||
dependencies:
|
needs: ["crypto build"]
|
||||||
- crypto build
|
|
||||||
script:
|
script:
|
||||||
- ./crypto/tests/aestst
|
- ./crypto/tests/aestst
|
||||||
- ./crypto/tests/test_check
|
- ./crypto/tests/test_check
|
||||||
@ -207,8 +196,7 @@ crypto test:
|
|||||||
|
|
||||||
legacy test:
|
legacy test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["legacy emu regular build"]
|
||||||
- legacy emu regular build
|
|
||||||
variables:
|
variables:
|
||||||
EMULATOR: "1"
|
EMULATOR: "1"
|
||||||
script:
|
script:
|
||||||
@ -224,8 +212,7 @@ legacy test:
|
|||||||
|
|
||||||
legacy btconly test:
|
legacy btconly test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["legacy emu btconly build"]
|
||||||
- legacy emu btconly build
|
|
||||||
variables:
|
variables:
|
||||||
EMULATOR: "1"
|
EMULATOR: "1"
|
||||||
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
||||||
@ -244,8 +231,7 @@ legacy btconly test:
|
|||||||
|
|
||||||
legacy upgrade test:
|
legacy upgrade test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
needs: ["legacy emu regular build"]
|
||||||
- legacy emu regular build
|
|
||||||
variables:
|
variables:
|
||||||
TREZOR_UPGRADE_TEST: "legacy"
|
TREZOR_UPGRADE_TEST: "legacy"
|
||||||
script:
|
script:
|
||||||
@ -265,7 +251,7 @@ legacy upgrade test:
|
|||||||
|
|
||||||
python test:
|
python test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
LC_ALL: "C.UTF-8"
|
LC_ALL: "C.UTF-8"
|
||||||
LANG: "C.UTF-8"
|
LANG: "C.UTF-8"
|
||||||
@ -288,7 +274,7 @@ storage test:
|
|||||||
changes:
|
changes:
|
||||||
- ci/**/*
|
- ci/**/*
|
||||||
- storage/**/*
|
- storage/**/*
|
||||||
dependencies: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run make -C storage/tests build"
|
- nix-shell --run "pipenv run make -C storage/tests build"
|
||||||
- nix-shell --run "pipenv run make -C storage/tests tests_all"
|
- nix-shell --run "pipenv run make -C storage/tests tests_all"
|
||||||
@ -310,8 +296,7 @@ hardware legacy regular device test:
|
|||||||
- /^release\//
|
- /^release\//
|
||||||
tags:
|
tags:
|
||||||
- tpmb
|
- tpmb
|
||||||
dependencies:
|
needs: ["legacy fw regular debug build"]
|
||||||
- legacy fw regular debug build
|
|
||||||
script:
|
script:
|
||||||
- cd ci/hardware_tests
|
- cd ci/hardware_tests
|
||||||
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
||||||
@ -337,8 +322,7 @@ hardware legacy btconly device test:
|
|||||||
- /^release\//
|
- /^release\//
|
||||||
tags:
|
tags:
|
||||||
- tpmb
|
- tpmb
|
||||||
dependencies:
|
needs: ["legacy fw btconly debug build"]
|
||||||
- legacy fw btconly debug build
|
|
||||||
script:
|
script:
|
||||||
- cd ci/hardware_tests
|
- cd ci/hardware_tests
|
||||||
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
||||||
|
Loading…
Reference in New Issue
Block a user