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

pull/1233/head
Tomas Susanka 4 years ago
parent a443a4a430
commit c7b6d98cfc

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

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

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

Loading…
Cancel
Save