2019-09-09 13:10:22 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/environment
|
|
|
|
|
2019-08-14 14:27:17 +00:00
|
|
|
# Releases
|
2019-09-09 13:10:22 +00:00
|
|
|
|
2019-08-14 14:27:17 +00:00
|
|
|
release core fw regular deploy:
|
2019-09-09 13:10:22 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
2019-08-14 14:27:17 +00:00
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- core fw regular build
|
|
|
|
script:
|
|
|
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^core\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
release core fw btconly deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- core fw btconly build
|
|
|
|
script:
|
|
|
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^core\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
release legacy fw regular deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- legacy fw regular build
|
|
|
|
script:
|
|
|
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^legacy\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
legacy fw btconly deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- legacy fw regular build
|
|
|
|
script:
|
|
|
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^legacy\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
|
|
|
|
# Release candidates
|
|
|
|
|
|
|
|
rc core fw regular deploy:
|
|
|
|
stage: deploy
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- core fw regular build
|
|
|
|
script:
|
|
|
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
|
|
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^release\//
|
2019-08-14 14:27:17 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
rc core fw btconly deploy:
|
|
|
|
stage: deploy
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- core fw btconly build
|
|
|
|
script:
|
|
|
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
|
|
|
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^release\//
|
2019-08-14 14:27:17 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
rc legacy fw regular deploy:
|
|
|
|
stage: deploy
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- legacy fw regular build
|
|
|
|
script:
|
|
|
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
|
|
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^release\//
|
2019-08-14 14:27:17 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
rc legacy fw btconly deploy:
|
|
|
|
stage: deploy
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- legacy fw btconly build
|
|
|
|
script:
|
|
|
|
- export DEPLOY_DIRECTORY="release_candidates/${CI_COMMIT_REF_NAME:8}/firmwares" # stripping 'release/'
|
|
|
|
- export VERSION=$(./tools/version.sh legacy/firmware/version.h)
|
|
|
|
- export NAME="trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^release\//
|
2019-08-14 14:27:17 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
# Upgrade tests
|
|
|
|
|
|
|
|
upgrade tests core deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
2019-09-09 13:10:22 +00:00
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- core unix frozen debug build
|
|
|
|
script:
|
2020-04-16 14:43:19 +00:00
|
|
|
- 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
|
2019-09-09 13:10:22 +00:00
|
|
|
- echo "Deploying to $DEST"
|
|
|
|
- rsync --delete -va core/build/unix/micropython "$DEST"
|
2019-08-14 14:27:17 +00:00
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^core\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
2019-09-09 13:10:22 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2019-08-14 14:27:17 +00:00
|
|
|
upgrade tests legacy deploy:
|
2019-09-09 13:10:22 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
2019-08-14 14:27:17 +00:00
|
|
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/upgrade_tests"
|
2019-09-09 13:10:22 +00:00
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
|
|
|
- legacy emu regular build
|
|
|
|
script:
|
2020-04-16 14:43:19 +00:00
|
|
|
- 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
|
2019-09-09 13:10:22 +00:00
|
|
|
- echo "Deploying to $DEST"
|
|
|
|
- rsync --delete -va legacy/firmware/trezor.elf "$DEST"
|
2019-08-14 14:27:17 +00:00
|
|
|
only:
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^legacy\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
2019-09-09 13:10:22 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
2019-12-30 13:09:18 +00:00
|
|
|
|
|
|
|
# UI tests
|
|
|
|
|
|
|
|
ui tests core fixtures deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/ui_tests/"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
dependencies:
|
2020-02-24 11:26:03 +00:00
|
|
|
- core device ui test
|
2019-12-30 13:09:18 +00:00
|
|
|
script:
|
|
|
|
- echo "Deploying to $DEPLOY_PATH"
|
2020-01-06 14:59:12 +00:00
|
|
|
- rsync --delete -va ci/ui_test_records/* "$DEPLOY_PATH"
|
2019-12-30 13:09:18 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|