2019-08-19 12:24:32 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/environment
|
|
|
|
|
|
|
|
variables:
|
|
|
|
SDL_VIDEODRIVER: "dummy"
|
|
|
|
XDG_RUNTIME_DIR: "/var/tmp"
|
|
|
|
|
|
|
|
|
|
|
|
# Core
|
|
|
|
|
|
|
|
build core firmware:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_cross
|
|
|
|
- pipenv run make build_boardloader
|
|
|
|
- pipenv run make build_bootloader
|
|
|
|
- pipenv run make build_prodtest
|
|
|
|
- pipenv run make build_firmware
|
|
|
|
- pipenv run make sizecheck
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/firmware/firmware.bin
|
|
|
|
- core/build/bootloader/bootloader.bin
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-08-22 18:18:44 +00:00
|
|
|
build core firmware bitcoinonly:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_firmware
|
|
|
|
- mv build/firmware/firmware.bin build/firmware/firmware-bitcoinonly.bin
|
2019-08-26 12:50:28 +00:00
|
|
|
- cd ..
|
|
|
|
- pipenv run ./tools/check-bitcoin-only core/build/firmware/firmware-bitcoinonly.bin
|
2019-08-22 18:18:44 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/firmware/firmware-bitcoinonly.bin
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
build core unix:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_unix
|
|
|
|
|
|
|
|
build core unix frozen:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_unix_frozen
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-08-22 13:56:47 +00:00
|
|
|
paths:
|
|
|
|
- core/build/unix/micropython
|
|
|
|
- core/src/trezor/res/resources.py
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2019-08-22 18:18:44 +00:00
|
|
|
build core unix frozen bitcoinonly:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_unix_frozen
|
|
|
|
- mv build/unix/micropython build/unix/micropython-bitcoinonly
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- core/build/unix/micropython-bitcoinonly
|
|
|
|
- core/src/trezor/res/resources.py
|
2019-08-26 12:50:28 +00:00
|
|
|
expire_in: 1 week
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2019-08-16 13:29:21 +00:00
|
|
|
build core unix frozen debug:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make build_unix_frozen
|
|
|
|
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
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Crypto
|
|
|
|
|
|
|
|
build crypto:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd crypto
|
|
|
|
- pipenv run make
|
|
|
|
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
|
|
|
|
|
|
|
|
# TODO: add clang https://github.com/trezor/trezor-firmware/issues/44
|
|
|
|
build legacy firmware:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
- pipenv run make -C bootloader
|
|
|
|
- pipenv run make -C demo
|
2019-08-26 12:50:28 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- legacy/firmware/trezor.bin
|
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
build legacy firmware debug:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
|
|
|
|
build legacy firmware bitcoinonly:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
2019-08-26 12:50:28 +00:00
|
|
|
- mv firmware/trezor.bin firmware/trezor-bitcoinonly.bin
|
|
|
|
- cd ..
|
|
|
|
- pipenv run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- legacy/firmware/trezor-bitcoinonly.bin
|
|
|
|
expire_in: 1 week
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
build legacy emu:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
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-08-21 08:22:41 +00:00
|
|
|
build legacy emu bitcoinonly:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
2019-08-22 18:18:44 +00:00
|
|
|
- mv firmware/trezor.elf firmware/trezor-bitcoinonly.elf
|
|
|
|
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
|