mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
ci: deploy frozen emulators to upgrade tests
This commit is contained in:
parent
885a21ab36
commit
54de6b9fac
@ -26,6 +26,7 @@ stages:
|
|||||||
- prebuild
|
- prebuild
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pipenv sync
|
- pipenv sync
|
||||||
@ -35,3 +36,4 @@ include:
|
|||||||
- ci/prebuild.yml
|
- ci/prebuild.yml
|
||||||
- ci/build.yml
|
- ci/build.yml
|
||||||
- ci/test.yml
|
- ci/test.yml
|
||||||
|
- ci/deploy.yml
|
||||||
|
40
ci/deploy.yml
Normal file
40
ci/deploy.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/environment
|
||||||
|
|
||||||
|
# Core
|
||||||
|
|
||||||
|
core to upgrade tests deploy:
|
||||||
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
DEPLOY_DIRECTORY: "${DEPLOY_BASE_DIR}upgrade_tests/"
|
||||||
|
before_script: [] # no pipenv
|
||||||
|
when: manual
|
||||||
|
dependencies:
|
||||||
|
- core unix frozen debug build
|
||||||
|
script:
|
||||||
|
- TAG=`git tag --points-at HEAD | sed "s/\//-/"`
|
||||||
|
- "[[ ! $TAG =~ 'core' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
|
||||||
|
- DEST=${DEPLOY_DIRECTORY}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"`
|
||||||
|
- echo "Deploying to $DEST"
|
||||||
|
- rsync --delete -va core/build/unix/micropython "$DEST"
|
||||||
|
tags:
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
|
# Legacy
|
||||||
|
|
||||||
|
legacy to upgrade tests deploy:
|
||||||
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
DEPLOY_DIRECTORY: "${DEPLOY_BASE_DIR}upgrade_tests/"
|
||||||
|
before_script: [] # no pipenv
|
||||||
|
when: manual
|
||||||
|
dependencies:
|
||||||
|
- legacy emu regular build
|
||||||
|
script:
|
||||||
|
- TAG=`git tag --points-at HEAD | sed "s/\//-/"`
|
||||||
|
- "[[ ! $TAG =~ 'legacy' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
|
||||||
|
- DEST=${DEPLOY_DIRECTORY}/trezor-emu-`git tag --points-at HEAD | sed "s/\//-/"`
|
||||||
|
- echo "Deploying to $DEST"
|
||||||
|
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
|
||||||
|
tags:
|
||||||
|
- deploy
|
Loading…
Reference in New Issue
Block a user