From 3b90326b12bacd536ee28856be6da5114bdfb183 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 22 Aug 2022 16:46:17 +0200 Subject: [PATCH] Add rt tests to CI --- .gitlab-ci.yml | 14 ++++++++++++++ nix/old-glibc.nix | 3 +++ 2 files changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8ef889..86f169c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,3 +17,17 @@ build:old-glibc: stage: build script: - nix-build nix/old-glibc.nix + +build:nosv-tests: + image: + name: nixos/nix:2.9.2 + stage: build + before_script: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | ssh-add /dev/fd/0 + - mkdir -p ~/.ssh + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - cat /proc/sys/user/max_user_namespaces || true + script: + - nix --extra-experimental-features "nix-command impure-derivations ca-derivations" --option sandbox false build -L --impure --file nix/nosv.nix diff --git a/nix/old-glibc.nix b/nix/old-glibc.nix index 361d907..09adbcd 100644 --- a/nix/old-glibc.nix +++ b/nix/old-glibc.nix @@ -19,6 +19,9 @@ in # current directory as-is preConfigure = '' rm -rf build install + + # There is no /bin/bash + patchShebangs test/*.sh ''; cmakeBuildType = "Debug";