1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00
trezor-firmware/.gitlab-ci.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

variables:
# See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy
2020-09-22 12:22:24 +00:00
GIT_STRATEGY: "clone"
2019-04-29 07:54:15 +00:00
# Init submodules
2019-04-24 13:05:48 +00:00
# See https://docs.gitlab.com/ee/ci/yaml/#git-submodule-strategy
GIT_SUBMODULE_STRATEGY: "recursive"
2019-04-24 13:05:48 +00:00
# Use shallow cloning to speed up git clone. This can fail, if retrying an older build on CI
# and the old commit is not in the shallow history any more.
# See https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
GIT_DEPTH: "50"
2019-04-29 07:54:15 +00:00
# Run `make` in parallel
2019-04-24 13:05:48 +00:00
MAKEFLAGS: "-j10"
# Apply timeout to pytest-based tests
PYTEST_TIMEOUT: "400"
# No need for TLS because everything runs on the same machine
DOCKER_TLS_CERTDIR: ""
2023-02-20 12:03:34 +00:00
NIX_SHELL: "nix-shell"
stages:
- environment
2019-04-26 13:33:25 +00:00
- prebuild
- build
- test
- posttest
- deploy
default:
# Cancel jobs when a newer pipeline appears
interruptible: true
before_script:
2022-01-10 16:00:02 +00:00
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
- $NIX_SHELL --run "poetry install --sync"
- export LEGACY_VERSION=$($NIX_SHELL --run "./tools/version.sh legacy/firmware/version.h")
- export CORE_VERSION=$($NIX_SHELL --run "./tools/version.sh core/embed/firmware/version.h")
include:
- ci/environment.yml
- ci/prebuild.yml
- ci/build.yml
- ci/test.yml
- ci/test-hw.yml
- ci/posttest.yml
- ci/deploy.yml