2019-04-23 13:56:07 +00:00
|
|
|
variables:
|
2019-05-23 11:59:30 +00:00
|
|
|
# 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-05-23 11:59:30 +00:00
|
|
|
|
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
|
2019-04-23 13:56:07 +00:00
|
|
|
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"
|
|
|
|
|
2020-03-09 09:31:40 +00:00
|
|
|
# Apply timeout to pytest-based tests
|
2023-03-23 15:47:58 +00:00
|
|
|
PYTEST_TIMEOUT: "400"
|
2020-03-09 09:31:40 +00:00
|
|
|
|
2019-07-29 12:58:16 +00:00
|
|
|
# No need for TLS because everything runs on the same machine
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
2023-02-14 18:17:05 +00:00
|
|
|
|
2023-02-20 12:03:34 +00:00
|
|
|
NIX_SHELL: "nix-shell"
|
2023-02-14 18:17:05 +00:00
|
|
|
|
2019-04-23 13:56:07 +00:00
|
|
|
stages:
|
|
|
|
- environment
|
2019-04-26 13:33:25 +00:00
|
|
|
- prebuild
|
2019-04-23 13:56:07 +00:00
|
|
|
- build
|
|
|
|
- test
|
2019-05-27 12:17:43 +00:00
|
|
|
- posttest
|
2019-09-09 13:10:22 +00:00
|
|
|
- deploy
|
2019-04-23 13:56:07 +00:00
|
|
|
|
|
|
|
before_script:
|
2022-01-10 16:00:02 +00:00
|
|
|
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
|
2023-04-24 12:43:19 +00:00
|
|
|
- $NIX_SHELL --run "poetry install --sync"
|
2023-02-14 18:17:05 +00:00
|
|
|
- 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")
|
2019-04-23 13:56:07 +00:00
|
|
|
|
2019-04-27 17:16:50 +00:00
|
|
|
include:
|
|
|
|
- ci/environment.yml
|
2019-08-19 12:24:32 +00:00
|
|
|
- ci/prebuild.yml
|
|
|
|
- ci/build.yml
|
|
|
|
- ci/test.yml
|
2021-02-02 20:25:10 +00:00
|
|
|
- ci/test-hw.yml
|
2019-05-27 12:17:43 +00:00
|
|
|
- ci/posttest.yml
|
2019-09-09 13:10:22 +00:00
|
|
|
- ci/deploy.yml
|