From ad3d6c3f45a3bb19f61661ccc1b942cdab814e51 Mon Sep 17 00:00:00 2001 From: Alfredo Di Napoli <alfredo.dinapoli@gmail.com> Date: Mon, 24 Feb 2025 08:33:08 +0100 Subject: [PATCH] feat(ci): Try to fix test CI step for newer pkgs.nix --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5378abb6..7785af35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,17 +66,18 @@ test: # initdb utility from postgres that cannot be run by 'root'. script: - | + echo "Creating test user..." mkdir -p /home/test mkdir -p /root/.config useradd -U test chown -R test:test dist-newstyle/ chown -R test:test /root/ chown -R test:test $STORE_DIR - chown -R test:test /root/.cache/nix/ + chown -R test:test /root/.cache/nix/tarball-cache export CABAL=$(nix-shell --run "which cabal") + echo "Found cabal at ${CABAL}" export TEST_NIX_PATH=$(nix-shell --run "echo -n \$PATH") - echo $CABAL - echo $TEST_NIX_PATH + echo "Found test nix path at ${TEST_NIX_PATH}" git config --global --add safe.directory '*' nix-shell --run "./bin/update-project-dependencies $STORE_DIR" mkdir -p /root/.cache/cabal/logs @@ -92,7 +93,7 @@ test: chown -R root:root $STORE_DIR chown -R root:root /root/.cache/cabal/logs/ chown -R root:root /root/.cache/cabal/packages/hackage.haskell.org/ - chown -R root:root /root/.cache/nix/ + chown -R root:root /root/.cache/nix/tarball-cache chown -Rh root:root /builds/gargantext/haskell-gargantext/devops/coreNLP/stanford-corenlp-current #docs: -- 2.21.0