From: Vladimír Čunát Date: Thu, 1 Jul 2021 18:33:54 +0000 (+0200) Subject: ci/pkgtest: add nix X-Git-Tag: v5.4.0~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c29b74b2daee580aef0bf2988a5d203f64210f1;p=thirdparty%2Fknot-resolver.git ci/pkgtest: add nix For now just a simple docker-based build, atop nixos-unstable (for now my nixpkgs branch that also adds apkg itself). --- diff --git a/ci/pkgtest.yaml b/ci/pkgtest.yaml index 50ac1887a..2e5a239f1 100644 --- a/ci/pkgtest.yaml +++ b/ci/pkgtest.yaml @@ -131,6 +131,25 @@ ubuntu-21.04:pkgbuild: DISTROTEST_REPO: xUbuntu_21.04 script: - *debpkgbuild + +nixos-unstable:pkgbuild: + <<: *pkgbuild + # We do NOT use LXC, for now at least. + tags: + - docker + - linux + - amd64 + image: nixos/nix + + variables: + #NIX_PATH: nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz + NIX_PATH: nixpkgs=https://github.com/vcunat/nixpkgs/archive/p/apkg.tar.gz + before_script: + script: + - nix build nixpkgs.apkg + # the image auto-detects as alpine distro + - ./result/bin/apkg install -d nix + - kresd --version # }}} # pkgtest {{{ diff --git a/distro/pkg/nix/top-level.nix b/distro/pkg/nix/top-level.nix index 911e5f0b6..bdd336049 100644 --- a/distro/pkg/nix/top-level.nix +++ b/distro/pkg/nix/top-level.nix @@ -3,5 +3,10 @@ with import {}; (callPackage ./. { }).overrideAttrs (attrs: { src = ./knot-resolver-{{ version }}.tar.xz; + + # This just breaks in our GitLab CI (not locally and not on hydra.nixos.org) + installCheckPhase = '' + meson test --print-errorlogs --no-suite snowflake + ''; })