2019-08-02 15:08:13 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/environment
|
2019-04-27 17:16:50 +00:00
|
|
|
|
2019-05-15 17:39:11 +00:00
|
|
|
variables:
|
|
|
|
SDL_VIDEODRIVER: "dummy"
|
|
|
|
XDG_RUNTIME_DIR: "/var/tmp"
|
|
|
|
|
2019-04-27 17:16:50 +00:00
|
|
|
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
|
|
|
|
# - test "$TREZOR_MODEL" = "1" || 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
|
|
|
|
|
|
|
|
build core unix:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd core
|
2019-05-15 17:39:11 +00:00
|
|
|
- pipenv run make build_unix
|
2019-04-27 17:16:50 +00:00
|
|
|
|
2019-05-01 11:43:31 +00:00
|
|
|
build core unix frozen:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd core
|
2019-05-15 17:39:11 +00:00
|
|
|
- pipenv run make build_unix_frozen
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
untracked: true
|
|
|
|
expire_in: 1 day
|
2019-05-01 11:43:31 +00:00
|
|
|
|
2019-04-27 17:16:50 +00:00
|
|
|
test core unix unit:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
2019-05-15 17:39:11 +00:00
|
|
|
- build core unix frozen
|
2019-04-27 17:16:50 +00:00
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make test
|
|
|
|
|
|
|
|
test core unix device:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
2019-05-15 17:39:11 +00:00
|
|
|
- build core unix frozen
|
2019-04-27 17:16:50 +00:00
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make test_emu
|
|
|
|
|
|
|
|
test core unix monero:
|
|
|
|
stage: test
|
|
|
|
dependencies:
|
2019-05-15 17:39:11 +00:00
|
|
|
- build core unix frozen
|
2019-04-27 17:16:50 +00:00
|
|
|
script:
|
|
|
|
- cd core
|
|
|
|
- pipenv run make test_emu_monero
|