2020-06-07 19:49:06 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
2019-09-09 13:10:22 +00:00
|
|
|
|
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
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core fw regular build"]
|
2019-08-14 14:27:17 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-regular-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2019-08-14 14:27:17 +00:00
|
|
|
- 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
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core fw btconly build"]
|
2019-08-14 14:27:17 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-btconly-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2019-08-14 14:27:17 +00:00
|
|
|
- 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
|
|
|
|
|
2020-08-26 14:24:20 +00:00
|
|
|
release core fw regular debug deploy:
|
2019-08-14 14:27:17 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
2020-08-26 14:24:20 +00:00
|
|
|
needs: ["core fw regular debug build"]
|
2019-08-14 14:27:17 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-regular-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2019-08-14 14:27:17 +00:00
|
|
|
- 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-08-26 14:24:20 +00:00
|
|
|
- /^core\//
|
2019-08-14 14:27:17 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2020-08-26 14:24:20 +00:00
|
|
|
release core fw btconly debug deploy:
|
2019-08-14 14:27:17 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
2020-08-26 14:24:20 +00:00
|
|
|
needs: ["core fw btconly debug build"]
|
|
|
|
script:
|
|
|
|
- export NAME="trezor-fw-btconly-debug-$CORE_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:
|
|
|
|
- /^core\//
|
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
# Legacy
|
|
|
|
|
|
|
|
release legacy fw regular deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
|
|
|
needs: ["legacy fw regular build"]
|
2019-08-14 14:27:17 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-regular-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2019-08-14 14:27:17 +00:00
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
2020-06-19 19:34:31 +00:00
|
|
|
only:
|
|
|
|
- /^legacy\//
|
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2020-08-26 14:24:20 +00:00
|
|
|
release legacy fw btconly deploy:
|
2020-06-19 19:34:31 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
2020-08-26 14:24:20 +00:00
|
|
|
needs: ["legacy fw btconly build"]
|
2020-06-19 19:34:31 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-btconly-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2020-06-19 19:34:31 +00:00
|
|
|
- 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-08-26 14:24:20 +00:00
|
|
|
- /^legacy\//
|
2020-06-19 19:34:31 +00:00
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2020-07-15 09:43:10 +00:00
|
|
|
release legacy fw regular debug deploy:
|
2020-06-19 19:34:31 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy fw regular debug build"]
|
2020-06-19 19:34:31 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-regular-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2020-06-19 19:34:31 +00:00
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
2020-07-15 09:43:10 +00:00
|
|
|
only:
|
|
|
|
- /^legacy\//
|
|
|
|
except:
|
|
|
|
- branches # run for tags only
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
release legacy fw btconly debug deploy:
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
DEPLOY_DIRECTORY: "releases/firmwares"
|
|
|
|
before_script: [] # no pipenv
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy fw btconly debug build"]
|
2020-07-15 09:43:10 +00:00
|
|
|
script:
|
2020-08-26 14:24:20 +00:00
|
|
|
- export NAME="trezor-fw-btconly-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin"
|
2020-07-15 09:43:10 +00:00
|
|
|
- echo "Deploying to ${DEPLOY_DIRECTORY}/$NAME"
|
|
|
|
- mkdir -p "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}"
|
|
|
|
- rsync --delete -va $NAME "${DEPLOY_BASE_DIR}/${DEPLOY_DIRECTORY}/$NAME"
|
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
|
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
# Emulators, used also for upgrade tests
|
2019-08-14 14:27:17 +00:00
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
release core unix debug deploy:
|
2019-08-14 14:27:17 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
2020-08-27 18:54:54 +00:00
|
|
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
2019-09-09 13:10:22 +00:00
|
|
|
before_script: [] # no pipenv
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-09-09 13:10:22 +00:00
|
|
|
script:
|
2020-08-27 18:54:54 +00:00
|
|
|
- DEST="$DEPLOY_PATH/trezor-emu-core-$CORE_VERSION-$CI_COMMIT_SHORT_SHA"
|
2019-09-09 13:10:22 +00:00
|
|
|
- echo "Deploying to $DEST"
|
2020-08-27 18:54:54 +00:00
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core"
|
2020-07-27 14:59:51 +00:00
|
|
|
- rsync --delete -va core/build/unix/trezor-emu-core "$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
|
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
release legacy unix debug deploy:
|
2019-09-09 13:10:22 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
2020-08-27 18:54:54 +00:00
|
|
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
2019-09-09 13:10:22 +00:00
|
|
|
before_script: [] # no pipenv
|
2020-08-27 18:54:54 +00:00
|
|
|
needs: ["legacy emu regular debug build"]
|
2019-09-09 13:10:22 +00:00
|
|
|
script:
|
2020-08-27 18:54:54 +00:00
|
|
|
- DEST="$DEPLOY_PATH/trezor-emu-legacy-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA"
|
2019-09-09 13:10:22 +00:00
|
|
|
- echo "Deploying to $DEST"
|
2020-08-27 18:54:54 +00:00
|
|
|
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf"
|
2019-09-09 13:10:22 +00:00
|
|
|
- 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
|
|
|
|
2020-08-27 18:54:54 +00:00
|
|
|
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
|
|
|
|
|
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
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["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
|