1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00
trezor-firmware/.gitlab-ci.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

variables:
2019-04-29 07:54:15 +00:00
# Using git fetch is faster
# See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy
GIT_STRATEGY: "fetch"
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: "300"
2019-04-29 07:54:15 +00:00
# Pipenv cache
PIPENV_VENV_IN_PROJECT: "true"
PIPENV_CACHE_DIR: ".cache/"
# No need for TLS because everything runs on the same machine
DOCKER_TLS_CERTDIR: ""
stages:
- environment
2019-04-26 13:33:25 +00:00
- prebuild
- build
- test
- posttest
- deploy
before_script:
- . $HOME/.nix-profile/etc/profile.d/nix.sh || true
2020-06-07 19:49:06 +00:00
- nix-shell --run "pipenv 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/posttest.yml
- ci/deploy.yml