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
|
|
|
|
|
|
|
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
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- 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_prodtest"
|
|
|
|
- nix-shell --run "pipenv run make -C core build_firmware"
|
|
|
|
- nix-shell --run "pipenv 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:
|
2019-08-14 14:27:17 +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
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "PYOPT=0 pipenv 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:
|
|
|
|
- trezor-fw-regular-debug-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
|
|
|
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
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- 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"
|
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:
|
2019-08-14 14:27:17 +00:00
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
2020-08-03 13:33:45 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
core fw btconly t1 build:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
TREZOR_MODEL: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "pipenv run make -C core build_firmware"
|
|
|
|
- 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-08-04 15:36:39 +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
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core build_unix"
|
2020-01-17 14:46:59 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-07-27 14:59:51 +00:00
|
|
|
- core/build/unix/trezor-emu-core
|
2020-01-17 14:46:59 +00:00
|
|
|
- core/src/trezor/res/resources.py
|
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core unix frozen regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv 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-07-27 14:59:51 +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
|
|
|
|
variables:
|
2020-01-17 14:46:59 +00:00
|
|
|
PYOPT: "0"
|
2019-08-22 18:18:44 +00:00
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv 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-07-27 14:59:51 +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
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
core unix frozen debug build:
|
2019-08-16 13:29:21 +00:00
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv 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
|
|
|
|
2020-05-03 19:45:34 +00:00
|
|
|
core unix frozen regular darwin:
|
2019-09-03 18:57:35 +00:00
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- darwin
|
|
|
|
when: manual
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core build_unix_frozen"
|
2019-09-03 18:57:35 +00:00
|
|
|
- mkdir -p TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/{MacOS,libs}
|
2020-07-27 14:59:51 +00:00
|
|
|
- cp -v core/build/unix/trezor-emu-core TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
2019-09-03 18:57:35 +00:00
|
|
|
- dylibbundler -of -b -i /usr/lib/system -d TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/libs -x TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
2020-07-06 17:06:56 +00:00
|
|
|
- mv TrezorEmu-$CI_COMMIT_SHORT_SHA.app trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
2019-09-03 18:57:35 +00:00
|
|
|
allow_failure: true
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
2020-07-06 17:06:56 +00:00
|
|
|
- trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
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
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- ci/**/*
|
|
|
|
- crypto/**/*
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C crypto"
|
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:
|
|
|
|
- crypto/tests/aestst
|
|
|
|
- crypto/tests/libtrezor-crypto.so
|
|
|
|
- crypto/tests/test_check
|
|
|
|
- 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
|
2019-08-28 13:51:27 +00:00
|
|
|
variables:
|
|
|
|
MEMORY_PROTECT: "0"
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run legacy/script/cibuild"
|
|
|
|
- nix-shell --run "pipenv 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:
|
2019-08-14 14:27:17 +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
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
2019-08-28 13:51:27 +00:00
|
|
|
MEMORY_PROTECT: "0"
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv 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:
|
|
|
|
- trezor-fw-regular-debug-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
|
|
|
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
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
2019-08-28 13:51:27 +00:00
|
|
|
MEMORY_PROTECT: "0"
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- 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"
|
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:
|
2019-08-14 14:27:17 +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
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
MEMORY_PROTECT: "0"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
script:
|
|
|
|
- nix-shell --run "pipenv run legacy/script/cibuild"
|
|
|
|
- nix-shell --run "pipenv run ./tools/check-bitcoin-only legacy/firmware/trezor.bin"
|
|
|
|
- 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:
|
|
|
|
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
legacy emu regular build:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv 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:
|
|
|
|
- legacy/firmware/trezor.elf
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
legacy emu btconly build:
|
2019-08-21 08:22:41 +00:00
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run legacy/script/cibuild"
|
|
|
|
- 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:
|
|
|
|
- legacy/firmware/trezor-bitcoinonly.elf
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|