1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

tests/upgrade-tests: modify paths in release jobs and add job for MacOS

This commit is contained in:
Tomas Susanka 2020-08-27 20:54:54 +02:00
parent a443a4a430
commit c7b6d98cfc
3 changed files with 32 additions and 17 deletions

View File

@ -238,7 +238,7 @@ legacy fw btconly debug build:
- trezor-fw-btconly-*.*.*-$CI_COMMIT_SHORT_SHA.bin
expire_in: 1 week
legacy emu regular build:
legacy emu regular debug build:
stage: build
needs: []
variables:
@ -252,7 +252,7 @@ legacy emu regular build:
- legacy/firmware/trezor.elf
expire_in: 1 week
legacy emu btconly build:
legacy emu btconly debug build:
stage: build
needs: []
variables:

View File

@ -148,19 +148,18 @@ release legacy fw btconly debug deploy:
tags:
- deploy
# Upgrade tests
# Emulators, used also for upgrade tests
upgrade tests core deploy:
release core unix debug deploy:
stage: deploy
variables:
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
before_script: [] # no pipenv
needs: ["core unix frozen debug build"]
script:
- TAG=`git tag --points-at HEAD | grep "core" | sed "s/\//-/"`
- "[[ $TAG == '' ]] && echo 'Tag is not core/*: exiting.' && exit 1"
- DEST=${DEPLOY_PATH}/trezor-emu-$TAG
- DEST="$DEPLOY_PATH/trezor-emu-core-$CORE_VERSION-$CI_COMMIT_SHORT_SHA"
- echo "Deploying to $DEST"
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core"
- rsync --delete -va core/build/unix/trezor-emu-core "$DEST"
only:
- /^core\//
@ -169,17 +168,16 @@ upgrade tests core deploy:
tags:
- deploy
upgrade tests legacy deploy:
release legacy unix debug deploy:
stage: deploy
variables:
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
before_script: [] # no pipenv
needs: ["legacy emu regular build"]
needs: ["legacy emu regular debug build"]
script:
- TAG=`git tag --points-at HEAD | grep "legacy" | sed "s/\//-/"`
- "[[ $TAG == '' ]] && echo 'Tag is not legacy/*: exiting.' && exit 1"
- DEST=${DEPLOY_PATH}/trezor-emu-$TAG
- DEST="$DEPLOY_PATH/trezor-emu-legacy-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA"
- echo "Deploying to $DEST"
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf"
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
only:
- /^legacy\//
@ -188,6 +186,23 @@ upgrade tests legacy deploy:
tags:
- deploy
release core macos debug deploy:
stage: deploy
variables:
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators/macos"
before_script: [] # no pipenv
needs: ["core unix frozen debug build"]
script:
- DEST="$DEPLOY_PATH/trezor-emu-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA"
- echo "Deploying to $DEST"
- rsync --delete -va core/build/unix/trezor-emu-core "$DEST"
only:
- /^core\//
except:
- branches # run for tags only
tags:
- deploy
# UI tests
ui tests core fixtures deploy:

View File

@ -196,7 +196,7 @@ crypto test:
legacy test:
stage: test
needs: ["legacy emu regular build"]
needs: ["legacy emu regular debug build"]
variables:
EMULATOR: "1"
script:
@ -212,7 +212,7 @@ legacy test:
legacy btconly test:
stage: test
needs: ["legacy emu btconly build"]
needs: ["legacy emu btconly debug build"]
variables:
EMULATOR: "1"
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
@ -231,7 +231,7 @@ legacy btconly test:
legacy upgrade test:
stage: test
needs: ["legacy emu regular build"]
needs: ["legacy emu regular debug build"]
variables:
TREZOR_UPGRADE_TEST: "legacy"
script: