mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 20:38:10 +00:00
ci: allow jobs to be cancelled when redundant
This commit is contained in:
parent
7d453bd100
commit
5c5de4674e
@ -30,6 +30,10 @@ stages:
|
|||||||
- posttest
|
- posttest
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
default:
|
||||||
|
# Cancel jobs when a newer pipeline appears
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
|
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
|
||||||
- $NIX_SHELL --run "poetry install --sync"
|
- $NIX_SHELL --run "poetry install --sync"
|
||||||
|
@ -8,6 +8,7 @@ release core fw regular deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core fw regular build
|
- core fw regular build
|
||||||
script:
|
script:
|
||||||
@ -29,6 +30,7 @@ release core fw btconly deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core fw btconly build
|
- core fw btconly build
|
||||||
script:
|
script:
|
||||||
@ -50,6 +52,7 @@ release core fw regular debug deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core fw regular debug build
|
- core fw regular debug build
|
||||||
script:
|
script:
|
||||||
@ -71,6 +74,7 @@ release core fw btconly debug deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
DEPLOY_DIRECTORY: "releases/firmwares/tt"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core fw btconly debug build
|
- core fw btconly debug build
|
||||||
script:
|
script:
|
||||||
@ -94,6 +98,7 @@ release legacy fw regular deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- legacy fw regular build
|
- legacy fw regular build
|
||||||
script:
|
script:
|
||||||
@ -115,6 +120,7 @@ release legacy fw btconly deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- legacy fw btconly build
|
- legacy fw btconly build
|
||||||
script:
|
script:
|
||||||
@ -136,6 +142,7 @@ release legacy fw regular debug deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- legacy fw regular debug build
|
- legacy fw regular debug build
|
||||||
script:
|
script:
|
||||||
@ -157,6 +164,7 @@ release legacy fw btconly debug deploy:
|
|||||||
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
DEPLOY_DIRECTORY: "releases/firmwares/t1"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- legacy fw btconly debug build
|
- legacy fw btconly debug build
|
||||||
script:
|
script:
|
||||||
@ -180,6 +188,7 @@ release core unix debug deploy:
|
|||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
- core unix frozen debug build arm
|
- core unix frozen debug build arm
|
||||||
@ -205,6 +214,7 @@ release legacy unix debug deploy:
|
|||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- legacy emu regular debug build
|
- legacy emu regular debug build
|
||||||
- legacy emu regular debug build arm
|
- legacy emu regular debug build arm
|
||||||
@ -233,6 +243,7 @@ ui tests fixtures deploy:
|
|||||||
BUCKET: "data.trezor.io"
|
BUCKET: "data.trezor.io"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
|
interruptible: false
|
||||||
needs:
|
needs:
|
||||||
- core click test
|
- core click test
|
||||||
- core device test
|
- core device test
|
||||||
@ -258,6 +269,7 @@ sync emulators to aws:
|
|||||||
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators/"
|
DEPLOY_PATH: "${DEPLOY_BASE_DIR}/releases/emulators/"
|
||||||
BUCKET: "data.trezor.io"
|
BUCKET: "data.trezor.io"
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
|
interruptible: false
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
script:
|
script:
|
||||||
- source ${AWS_DEPLOY_DATA}
|
- source ${AWS_DEPLOY_DATA}
|
||||||
@ -285,6 +297,7 @@ common sync:
|
|||||||
GIT_DEPTH: 0 # avoid shallow clone
|
GIT_DEPTH: 0 # avoid shallow clone
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
|
interruptible: false
|
||||||
needs: []
|
needs: []
|
||||||
before_script: [] # no poetry
|
before_script: [] # no poetry
|
||||||
script:
|
script:
|
||||||
|
@ -283,28 +283,28 @@ Consists of **13 jobs** below:
|
|||||||
|
|
||||||
### [release core fw regular deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L5)
|
### [release core fw regular deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L5)
|
||||||
|
|
||||||
### [release core fw btconly deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L26)
|
### [release core fw btconly deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L27)
|
||||||
|
|
||||||
### [release core fw regular debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L47)
|
### [release core fw regular debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L49)
|
||||||
|
|
||||||
### [release core fw btconly debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L68)
|
### [release core fw btconly debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L71)
|
||||||
|
|
||||||
### [release legacy fw regular deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L91)
|
### [release legacy fw regular deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L95)
|
||||||
|
|
||||||
### [release legacy fw btconly deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L112)
|
### [release legacy fw btconly deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L117)
|
||||||
|
|
||||||
### [release legacy fw regular debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L133)
|
### [release legacy fw regular debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L139)
|
||||||
|
|
||||||
### [release legacy fw btconly debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L154)
|
### [release legacy fw btconly debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L161)
|
||||||
|
|
||||||
### [release core unix debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L177)
|
### [release core unix debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L185)
|
||||||
|
|
||||||
### [release legacy unix debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L202)
|
### [release legacy unix debug deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L211)
|
||||||
|
|
||||||
### [ui tests fixtures deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L229)
|
### [ui tests fixtures deploy](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L239)
|
||||||
|
|
||||||
### [sync emulators to aws](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L255)
|
### [sync emulators to aws](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L266)
|
||||||
|
|
||||||
### [common sync](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L280)
|
### [common sync](https://github.com/trezor/trezor-firmware/blob/master/ci/deploy.yml#L292)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user