Skip to content

fix GitLab CI

Joey Hewitt requested to merge scintill/nixos-mailserver:fix-tests into master

Their CI environment currently doesn't have KVM: gitlab-org/gitlab-runner#2242

Workaround is two parts:

  • Make a /dev/kvm file so that nix thinks we have "kvm" system feature and proceeds with executing the tests.
  • Inject a QEMU package that replaces qemu-kvm with a full emulator. This is really slow, so I'm hoping they enable KVM soon.

You can still run tests locally on your KVM-enabled machine as documented on the wiki.

Cleanup suggestions for the nix code are welcome, although maybe unnecessary since it's hopefully only temporary testing code. This is my first derivation. I don't like the verbosity and repetition of what I added to tests{intern|extern|clamav.nix}.

Edited by Joey Hewitt

Merge request reports