Update drone-config

This commit is contained in:
Hendrik Sokolowski 2022-10-15 01:58:36 +02:00
parent bcf6ca5fe4
commit 7cfb646d67
Signed by untrusted user: hensoko
GPG key ID: 5C36A01B80BCCC59
2 changed files with 8 additions and 5 deletions

View file

@ -1,11 +1,12 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: exec
name: Check name: Check
node:
hosttype: baremetal
steps: steps:
- name: "Check" - name: "Check"
image: docker.nix-community.org/nixpkgs/nix-flakes:latest
when: when:
event: event:
- pull_request - pull_request
@ -20,6 +21,8 @@ steps:
kind: pipeline kind: pipeline
type: exec type: exec
name: Tests name: Tests
node:
hosttype: baremetal
steps: steps:
- name: "Tests" - name: "Tests"
@ -29,6 +32,7 @@ steps:
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS' - 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
- nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest" - nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest"
- nix-store --read-log result - nix-store --read-log result
- if [ ! -e /dev/kvm ]; then exit 1; fi
- nix $$NIX_FLAGS flake check - nix $$NIX_FLAGS flake check
- nix $$NIX_FLAGS develop --command echo OK - nix $$NIX_FLAGS develop --command echo OK
@ -50,7 +54,6 @@ steps:
- cd tritonshell - 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/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 - nix develop --command mput -p -f ../result/test-wayland.out ~~/public/$${TARGET_DIR}/test-wayland.out
trigger: trigger:
ref: ref:
- refs/tags/v* - refs/tags/v*

View file

@ -42,8 +42,8 @@
# Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch: # 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.qemu.options = [ "-vga none -device virtio-gpu-pci" ];
virtualisation.cores = 4; virtualisation.cores = 2;
virtualisation.memorySize = 2048; virtualisation.memorySize = 512;
}; };
enableOCR = true; enableOCR = true;