1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 01:18:28 +00:00

ci: use artifacts to pass builds to testing

This commit is contained in:
Tomas Susanka 2019-04-24 11:27:21 +02:00
parent 1c00d868a9
commit 8ec40bdccb

View File

@ -38,10 +38,10 @@ build core firmware:
- pipenv run make build_firmware - pipenv run make build_firmware
# - test "$TREZOR_MODEL" = "1" || pipenv run make sizecheck # - test "$TREZOR_MODEL" = "1" || pipenv run make sizecheck
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths: paths:
- core/build/firmware/firmware.bin - core/build/firmware/firmware.bin
- core/build/bootloader/bootloader.bin - core/build/bootloader/bootloader.bin
- core/build/boardloader/boardloader.bin
expire_in: 1 week expire_in: 1 week
build core unix: build core unix:
@ -49,6 +49,10 @@ build core unix:
script: script:
- cd core - cd core
- pipenv run make build_unix_noui - pipenv run make build_unix_noui
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
untracked: true
expire_in: 1 day
# TODO: matrix: DEBUG_LINK={0,1}, gcc vs clang # TODO: matrix: DEBUG_LINK={0,1}, gcc vs clang
build legacy: build legacy:
@ -69,23 +73,26 @@ test style:
test core unix unit: test core unix unit:
stage: test stage: test
dependencies:
- build core unix
script: script:
- cd core - cd core
- pipenv run make build_unix_noui
- pipenv run make test - pipenv run make test
test core unix device: test core unix device:
stage: test stage: test
dependencies:
- build core unix
script: script:
- cd core - cd core
- pipenv run make build_unix_noui
- pipenv run make test_emu - pipenv run make test_emu
test core unix monero: test core unix monero:
stage: test stage: test
dependencies:
- build core unix
script: script:
- cd core - cd core
- pipenv run make build_unix_noui
- pipenv run make test_emu_monero - pipenv run make test_emu_monero
test common: test common: