2020-06-07 19:49:06 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2021-11-24 12:24:10 +00:00
|
|
|
# Caching
|
|
|
|
.gitlab_caching: &gitlab_caching
|
|
|
|
cache:
|
|
|
|
key: "$CI_COMMIT_REF_SLUG"
|
|
|
|
paths:
|
|
|
|
- .venv/
|
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
SDL_VIDEODRIVER: "dummy"
|
|
|
|
XDG_RUNTIME_DIR: "/var/tmp"
|
|
|
|
|
|
|
|
# Core
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core fw regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_boardloader"
|
|
|
|
- nix-shell --run "poetry run make -C core build_bootloader"
|
2021-02-11 18:36:02 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_bootloader_ci"
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_prodtest"
|
|
|
|
- nix-shell --run "poetry run make -C core build_firmware"
|
|
|
|
- nix-shell --run "poetry run make -C core sizecheck"
|
2020-07-06 17:06:56 +00:00
|
|
|
- cp core/build/firmware/firmware.bin trezor-fw-regular-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-19 12:24:32 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-regular-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-19 12:24:32 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-11-05 09:23:11 +00:00
|
|
|
core fw regular debug build:
|
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-11-05 09:23:11 +00:00
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "PYOPT=0 poetry run make -C core build_firmware"
|
2020-07-06 17:06:56 +00:00
|
|
|
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-11-05 09:23:11 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-regular-debug-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-11-05 09:23:11 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core fw btconly build:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_firmware"
|
2020-06-07 19:49:06 +00:00
|
|
|
- mv core/build/firmware/firmware.bin core/build/firmware/firmware-bitcoinonly.bin
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run ./tools/check-bitcoin-only core/build/firmware/firmware-bitcoinonly.bin"
|
2020-07-06 17:06:56 +00:00
|
|
|
- cp core/build/firmware/firmware-bitcoinonly.bin trezor-fw-btconly-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-22 18:18:44 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2020-08-03 13:33:45 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2020-08-26 14:24:20 +00:00
|
|
|
core fw btconly debug build:
|
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-26 14:24:20 +00:00
|
|
|
needs: []
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
PYOPT: "0"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_firmware"
|
2020-08-26 14:24:20 +00:00
|
|
|
- cp core/build/firmware/firmware.bin trezor-fw-btconly-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2020-09-03 11:21:19 +00:00
|
|
|
only: # currently used only for HW tests and deploys
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
2020-08-26 14:24:20 +00:00
|
|
|
- /^core\//
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2020-08-26 14:24:20 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2020-08-03 13:33:45 +00:00
|
|
|
core fw btconly t1 build:
|
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2020-08-03 13:33:45 +00:00
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
TREZOR_MODEL: "1"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_firmware"
|
2020-08-03 13:33:45 +00:00
|
|
|
- cp core/build/firmware/firmware.bin trezor-fw-btconly-t1-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-btconly-t1-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-22 18:18:44 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core unix regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_unix"
|
2020-01-17 14:46:59 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2021-09-20 14:03:26 +00:00
|
|
|
- core/build/unix # most of it needed by test_rust
|
2020-01-17 14:46:59 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
core unix regular asan build:
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
ADDRESS_SANITIZER: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core build_unix"
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/unix # most of it needed by test_rust
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core unix frozen regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
2019-08-19 12:24:32 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-08-22 13:56:47 +00:00
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- core/build/unix/trezor-emu-core
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-01-17 14:46:59 +00:00
|
|
|
core unix frozen btconly debug build:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
2020-01-17 14:46:59 +00:00
|
|
|
PYOPT: "0"
|
2019-08-22 18:18:44 +00:00
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
2020-07-27 14:59:51 +00:00
|
|
|
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-bitcoinonly
|
2019-08-22 18:18:44 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- core/build/unix/trezor-emu-core-bitcoinonly
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2022-01-07 12:07:45 +00:00
|
|
|
core unix frozen btconly debug asan build:
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
ADDRESS_SANITIZER: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
|
|
|
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-bitcoinonly
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/unix/trezor-emu-core-bitcoinonly
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core unix frozen debug build:
|
2019-08-16 13:29:21 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-16 13:29:21 +00:00
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
2022-01-07 12:07:45 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
untracked: true
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
core unix frozen debug asan build:
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
ADDRESS_SANITIZER: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
2019-08-16 13:29:21 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
untracked: true
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-16 13:29:21 +00:00
|
|
|
|
2021-12-13 14:22:47 +00:00
|
|
|
core unix frozen debug build arm:
|
|
|
|
image: vdovhanych/nixos
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
script:
|
|
|
|
- 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
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
untracked: true
|
|
|
|
expire_in: 1 week
|
|
|
|
tags:
|
|
|
|
- docker_darwin_arm
|
|
|
|
|
2021-11-03 19:02:38 +00:00
|
|
|
core unix frozen btconly debug t1 build:
|
|
|
|
stage: build
|
|
|
|
needs: []
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
TREZOR_MODEL: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
|
|
|
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-bitcoinonly
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/unix # most of it needed by test_rust
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2020-08-23 18:06:50 +00:00
|
|
|
core macos frozen regular build:
|
2019-09-03 18:57:35 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2020-10-12 15:11:37 +00:00
|
|
|
when: manual
|
2019-09-03 18:57:35 +00:00
|
|
|
tags:
|
2021-12-13 14:22:47 +00:00
|
|
|
- darwin_arm
|
2019-09-03 18:57:35 +00:00
|
|
|
script:
|
2021-12-13 14:22:47 +00:00
|
|
|
- nix-shell --option system x86_64-darwin --run "poetry run make -C core build_unix_frozen"
|
2020-08-23 18:06:50 +00:00
|
|
|
- export NAME="trezor-emu-core.darwin"
|
|
|
|
- cp -v core/build/unix/trezor-emu-core ./$NAME
|
|
|
|
- chmod +x $NAME
|
|
|
|
- echo '"$(dirname "$BASH_SOURCE")"/trezor-emu-core.darwin' > trezor-emulator.command
|
|
|
|
- chmod u+x trezor-emulator.command
|
2020-09-25 14:21:23 +00:00
|
|
|
allow_failure: true
|
2019-09-03 18:57:35 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-08-23 18:06:50 +00:00
|
|
|
- trezor-emu-core.darwin
|
|
|
|
- trezor-emulator.command
|
2019-09-03 18:57:35 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Crypto
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
crypto build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2022-01-05 16:11:19 +00:00
|
|
|
variables:
|
|
|
|
ADDRESS_SANITIZER: "1"
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
2020-09-25 13:50:53 +00:00
|
|
|
- .gitlab-ci.yml
|
2019-09-05 15:44:55 +00:00
|
|
|
- ci/**/*
|
|
|
|
- crypto/**/*
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2022-01-12 15:35:34 +00:00
|
|
|
- cp -r crypto crypto_noasan
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C crypto"
|
2022-01-12 15:35:34 +00:00
|
|
|
- nix-shell --run "export ADDRESS_SANITIZER=0; poetry run make -C crypto_noasan"
|
|
|
|
- mv crypto_noasan/tests/test_check crypto/tests/test_check_noasan
|
2019-08-19 12:24:32 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-08-22 13:56:47 +00:00
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- crypto/tests/aestst
|
|
|
|
- crypto/tests/libtrezor-crypto.so
|
|
|
|
- crypto/tests/test_check
|
2022-01-12 15:35:34 +00:00
|
|
|
- crypto/tests/test_check_noasan
|
2020-11-09 17:52:34 +00:00
|
|
|
- crypto/tests/test_openssl
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Legacy
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
legacy fw regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=1 && poetry run legacy/script/cibuild"
|
2021-11-24 10:14:44 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/setup"
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run make -C legacy/demo"
|
2020-07-06 17:06:56 +00:00
|
|
|
- mv legacy/firmware/trezor.bin trezor-fw-regular-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-26 12:50:28 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-regular-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-07-15 09:43:10 +00:00
|
|
|
legacy fw regular debug build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
script:
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=1 && poetry run legacy/script/cibuild"
|
2021-11-24 10:14:44 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/setup"
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
2020-07-06 17:06:56 +00:00
|
|
|
- mv legacy/firmware/trezor.bin trezor-fw-regular-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-10-31 12:39:26 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-regular-debug-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-10-31 12:39:26 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
legacy fw btconly build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=1 && poetry run legacy/script/cibuild"
|
2021-11-24 10:14:44 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/setup"
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
2020-06-07 19:49:06 +00:00
|
|
|
- mv legacy/firmware/trezor.bin legacy/firmware/trezor-bitcoinonly.bin
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
|
2020-07-06 17:06:56 +00:00
|
|
|
- mv legacy/firmware/trezor-bitcoinonly.bin trezor-fw-btconly-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-26 12:50:28 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-07-15 09:43:10 +00:00
|
|
|
legacy fw btconly debug build:
|
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2020-07-15 09:43:10 +00:00
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
script:
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=1 && poetry run legacy/script/cibuild"
|
2021-11-24 10:14:44 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/setup"
|
2021-12-12 14:45:10 +00:00
|
|
|
- nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor.bin"
|
2020-07-15 09:43:10 +00:00
|
|
|
- mv legacy/firmware/trezor.bin trezor-fw-btconly-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2020-07-15 09:43:10 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
legacy emu regular debug build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
2019-08-19 12:24:32 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-08-22 13:56:47 +00:00
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- legacy/firmware/trezor.elf
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-01-07 20:51:05 +00:00
|
|
|
legacy emu regular debug asan build:
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
ADDRESS_SANITIZER: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- legacy/firmware/trezor.elf
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2021-12-13 14:22:47 +00:00
|
|
|
legacy emu regular debug build arm:
|
|
|
|
image: vdovhanych/nixos
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
|
|
|
- mv legacy/firmware/trezor.elf legacy/firmware/trezor-arm.elf
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- legacy/firmware/trezor-arm.elf
|
|
|
|
expire_in: 1 week
|
|
|
|
tags:
|
|
|
|
- docker_darwin_arm
|
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
legacy emu btconly debug build:
|
2019-08-21 08:22:41 +00:00
|
|
|
stage: build
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-21 08:22:41 +00:00
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2020-09-25 14:21:23 +00:00
|
|
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
2020-06-07 19:49:06 +00:00
|
|
|
- mv legacy/firmware/trezor.elf legacy/firmware/trezor-bitcoinonly.elf
|
2019-08-22 18:18:44 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-11-09 17:52:34 +00:00
|
|
|
- legacy/firmware/trezor-bitcoinonly.elf
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2022-01-07 20:51:05 +00:00
|
|
|
|
|
|
|
legacy emu btconly debug asan build:
|
|
|
|
stage: build
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
ADDRESS_SANITIZER: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
|
|
|
- mv legacy/firmware/trezor.elf legacy/firmware/trezor-bitcoinonly.elf
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- legacy/firmware/trezor-bitcoinonly.elf
|
|
|
|
expire_in: 1 week
|