Martin Milata
6050412ed4
docs: hardware CI test jobs
2021-02-06 11:56:23 +01:00
Martin Milata
73c600d3f5
ci: also run regular tt tests on hw
...
Break off hardware test tasks into separate file.
2021-02-05 12:58:21 +01:00
Martin Milata
55474bdadd
ci: use custom uhubctl package
...
Simply bumping the nixpkgs unstable version causes python test to fail:
https://gitlab.com/satoshilabs/trezor/trezor-firmware/-/jobs/1008507521
Until that's resolved we can stay on the current nixpkgs version and use
our own copy of the uhubctl nix expression.
2021-02-05 12:58:21 +01:00
Martin Milata
4d5e6e360f
ci: change usb location/ports
2021-02-05 12:58:21 +01:00
Martin Milata
c7b021e59e
ci: hardware: wipe tt before flashing
2021-02-05 12:58:21 +01:00
Martin Milata
ceccf1951a
ci: all hw configuration in one place
2021-02-05 12:58:21 +01:00
Martin Milata
4adbb4e8e1
ci: use same pinned nixpkgs for hardware tests
2021-02-05 12:58:21 +01:00
Martin Milata
41bf9201b5
ci: do not rely on TREZOR_PATH, use switch ports instead
...
As the connected Trezors can be left in various weird states, trezorctl
list may not always return what is expected or even fail. If it failed
TREZOR_PATH was set to empty string which means random device got
selected.
For now let's avoid using incorrect device by powering down the other
usb port.
Fix log lines ordering.
2021-02-05 12:58:21 +01:00
Martin Milata
ed481b5dde
ci: hw tests: tweak wait times
2021-02-05 12:58:21 +01:00
Martin Milata
0a75e02392
ci: skip some tests that cause alloc failure
...
Also increase PYTEST_TIMEOUT so that test_lots_of_inputs has enough time
to pass.
2021-02-05 12:58:21 +01:00
Martin Milata
dedca1bb13
ci: ffmpeg tweaks in hardware tests
...
Running ffmpeg in a subshell and killing it in exit trap handler should
ensure video availability even when bootstrap or pytest fail.
2021-02-05 12:58:21 +01:00
Tomas Susanka
708a85a916
ci: run btconly firmware on TT in HW tests
2021-02-05 12:58:21 +01:00
Tomas Susanka
61531fbd4a
ci: introduce hardware tests for TT
2021-02-05 12:58:21 +01:00
Pavol Rusnak
250f09245b
ci: drop experimental --platform argument from docker
2021-01-22 16:55:27 +01:00
Pavol Rusnak
1f5d8b89d7
nix: stdenv.lib -> lib
...
[skip_ci]
2021-01-19 17:01:47 +01:00
Tomas Susanka
677465eecd
ci: update Monero test binary to latest 0.17.1.9
2021-01-13 18:12:13 +01:00
Pavol Rusnak
453df567d3
ci: various fixes and updates
...
- fix Nix build on macOS Big Sur (by updating to nixpkgs-unstable)
- update gcc-arm-embedded from 9.x to 10.x
- update nix to 2.3.10
- update Alpine Linux to 3.12.3
- allow to change arch in Docker
2021-01-04 14:40:16 +01:00
Pavol Rusnak
b9c0b597bc
nix: bump stable nixos-20.09 to latest
2020-12-17 14:32:20 +01:00
Martin Milata
a0fccca041
ci(core): increase PYTEST_TIMEOUT for memory profiling
...
test_lots_of_inputs times out, still less than 1200 needed on actual
hardware
2020-12-08 18:07:50 +01:00
matejcik
faa57e29db
build(core): include generated resources.py in repo
2020-11-20 18:55:35 +01:00
Pavol Rusnak
50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
2020-11-11 14:43:50 +01:00
Pavol Rusnak
473fb1a3a6
ci: enable yaml checks
2020-11-11 14:23:28 +01:00
Tomas Susanka
09a8d4229e
feat(ci): introduce yamllint
2020-11-10 10:27:47 +01:00
Tomas Susanka
1f90a13372
ci: change [NO MASTER] to [RELEASE ONLY] in release check
...
To make it the same as in Suite.
2020-11-05 19:11:10 +01:00
Tomas Susanka
859aa23752
ci: remove 'changes' from prebuild
2020-11-05 18:55:10 +01:00
Tomas Susanka
cc3d86f0dd
ci: skip submodules download where applicable
2020-11-05 18:54:56 +01:00
Martin Milata
c89a8b7bd5
ci(core): add memory profiler job
2020-11-02 14:14:00 +01:00
Tomas Susanka
fd90bb9d10
ci: remove darwin emulator deploy
...
We'll use trezor user env for that.
2020-10-30 11:28:46 +01:00
Tomas Susanka
dfd93b6759
ci: distinguish between t1 and tt on firmware corp server
2020-10-30 11:28:01 +01:00
Martin Milata
9ed25a718a
ci: handle full dependencies in shell.nix
...
Handling of full dependencies (multiple python versions, Monero tests)
was moved from Dockerfile to shell.nix.
The Python packages are installed from the pinned nixpkgs revision and
do not depend on channel state at the time of docker build anymore.
The Monero test binary is now downloaded using fetchurl which fails the
build if checksum doesn't match.
2020-10-15 15:59:20 +02:00
Tomas Susanka
6cb601509b
ci: skip macos build for now
2020-10-12 17:11:52 +02:00
Tomas Susanka
2101ff8904
ci: also remove docker pull from environment, it is not needed
2020-10-12 09:08:05 +02:00
Pavol Rusnak
2fcc34c301
ci: another try with the environment
2020-10-11 22:15:45 +02:00
Pavol Rusnak
940400998a
ci(dockerfile): fix other python versions
2020-10-11 15:30:50 +02:00
Pavol Rusnak
6cc1d70f2e
ci(dockerfile): fix python versions
2020-10-08 15:24:12 +02:00
Tomas Susanka
3a8e46467a
ci: fix firmware versions in deploy jobs
...
We do not run before_script because we run `nix-shell` and `poetry install`
there. The deploy takes about ~5s without nix-shell and peotry and ~5m with
both so it is worth it.
2020-10-07 22:13:57 +02:00
Pavol Rusnak
2e4d67165f
ci(nix): update nixpkgs to latest nixos-20.09 stable
2020-10-07 16:30:50 +02:00
Pavol Rusnak
4fdb62c2e2
chore(python): replace pipenv with poetry
2020-10-07 16:21:00 +02:00
Pavol Rusnak
98ea241e97
ci: use alternative list syntax for needs
2020-10-06 21:59:22 +02:00
Tomas Susanka
99e0faafb6
test(core): print fixtures suggestion after the test
2020-10-06 21:17:28 +02:00
Tomas Susanka
225966ea7c
ci: fix date epoch in shell.nix not in Gitlab yml file
...
This way we fix also local environments for devs with NixOS.
Updates 988c7f65af
.
2020-09-30 09:29:43 +02:00
matejcik
1f5c08c9a2
ci: add .gitlab-ci.yml as explicit trigger whenever ci/** is a trigger
2020-09-29 11:30:40 +02:00
matejcik
e4785d47e0
style: apply black 20.8b1
2020-09-29 11:30:40 +02:00
Tomas Susanka
5edd0a55f3
ci: document arduino pins
2020-09-01 13:51:32 +02:00
Tomas Susanka
c7b6d98cfc
tests/upgrade-tests: modify paths in release jobs and add job for MacOS
2020-08-27 21:04:22 +02:00
Tomas Susanka
c52c93aea0
ci: add core btconly debug build and deploy it during release
2020-08-26 16:24:43 +02:00
Tomas Susanka
00593dc6d6
ci: fix builds for MacOS
...
Drop .app bundling and use a simpler approach. A simple .command bash
script is present that launches the binary.
2020-08-26 13:58:31 +02:00
Tomas Susanka
db020c7a47
ci: run HW tests for secfix branches
2020-08-24 13:30:57 +02:00
Tomas Susanka
141d9099f5
ci: remove release candidates deploy
...
It is not being used at the moment anyway.
2020-08-24 13:28:41 +02:00
Martin Milata
71c5bc4e3b
ci: fail if coverage falls under threshold
2020-08-18 21:08:46 +02:00