From 7cfb646d678b863d5eaa1089b70508fc5fff1341 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Sat, 15 Oct 2022 01:58:36 +0200 Subject: [PATCH] Update drone-config --- .drone.yml | 9 ++++++--- tests/first-test.nix | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5e20924e..dbef4e54 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,12 @@ --- kind: pipeline -type: docker +type: exec name: Check +node: + hosttype: baremetal steps: - name: "Check" - image: docker.nix-community.org/nixpkgs/nix-flakes:latest when: event: - pull_request @@ -20,6 +21,8 @@ steps: kind: pipeline type: exec name: Tests +node: + hosttype: baremetal steps: - name: "Tests" @@ -29,6 +32,7 @@ steps: - 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS' - nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest" - nix-store --read-log result + - if [ ! -e /dev/kvm ]; then exit 1; fi - nix $$NIX_FLAGS flake check - nix $$NIX_FLAGS develop --command echo OK @@ -50,7 +54,6 @@ steps: - cd tritonshell - nix develop --command mput -p -f ../result/foot_wayland_info.png ~~/public/$${TARGET_DIR}/foot_wayland_info.png - nix develop --command mput -p -f ../result/test-wayland.out ~~/public/$${TARGET_DIR}/test-wayland.out - trigger: ref: - refs/tags/v* diff --git a/tests/first-test.nix b/tests/first-test.nix index 251779a1..27abb5ee 100644 --- a/tests/first-test.nix +++ b/tests/first-test.nix @@ -42,8 +42,8 @@ # Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch: virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ]; - virtualisation.cores = 4; - virtualisation.memorySize = 2048; + virtualisation.cores = 2; + virtualisation.memorySize = 512; }; enableOCR = true;