2019-04-27 17:16:50 +00:00
|
|
|
image: registry.corp.sldev.cz/trezor/trezor-firmware/environment
|
|
|
|
|
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 legacy firmware:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
- pipenv run make -C bootloader
|
|
|
|
- pipenv run make -C demo
|
|
|
|
|
|
|
|
build legacy firmware debug:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
- pipenv run make -C bootloader
|
|
|
|
- pipenv run make -C demo
|
|
|
|
|
|
|
|
build legacy firmware bitcoinonly:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
BITCOIN_ONLY: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
- pipenv run make -C bootloader
|
|
|
|
- pipenv run make -C demo
|
|
|
|
|
|
|
|
build legacy emu:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
DEBUG_LINK: "1"
|
2019-05-15 17:39:11 +00:00
|
|
|
EMULATOR: "1"
|
2019-04-27 17:16:50 +00:00
|
|
|
script:
|
|
|
|
- cd legacy
|
|
|
|
- pipenv run script/cibuild
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
untracked: true
|
|
|
|
expire_in: 1 day
|
|
|
|
|
|
|
|
# TODO: aren't some tests from .travis.yml missing?
|
|
|
|
test legacy emu:
|
2019-04-28 10:15:24 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules
|
2019-04-27 17:16:50 +00:00
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build legacy emu
|
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
|
|
|
- cd legacy
|
2019-05-15 17:39:11 +00:00
|
|
|
- pipenv run script/test
|