[CI] attempt at fixing nix db permissions

parent 76c1b9a6
Pipeline #7746 failed with stages
in 44 minutes and 44 seconds
......@@ -73,12 +73,6 @@ test:
- chown -R test:test ${CABAL_DIR}
- mkdir -p "$XDG_CACHE_HOME/nix"
- chown -R test:test "$XDG_CACHE_HOME/nix"
# Fix
# opening lock file '/nix/var/nix/db/big-lock': Permission denied
# when starting CoreNLP
- chmod -R 755 /nix/var/nix/db/
- chmod 666 /nix/var/nix/db/big-lock
cache:
key: cabal.project
......@@ -101,6 +95,12 @@ test:
chown -R test:test /root/.cache/cabal/logs/
chown -R test:test "$TEST_TMPDIR"
# Fix
# opening lock file '/nix/var/nix/db/big-lock': Permission denied
# when starting CoreNLP
chmod -R 755 /nix/var/nix/db/
chmod 666 /nix/var/nix/db/big-lock
nix-shell --run "chown -R test:test /root/.config/ && su -m test -c \"export PATH=$PATH:$TEST_NIX_PATH && export TMPDIR=$TEST_TMPDIR && cd /builds/gargantext/haskell-gargantext; $CABAL --store-dir=$STORE_DIR v2-test --test-show-details=streaming --flags 'test-crypto no-phylo-debug-logs' --ghc-options='-O0 -fclear-plugins'\""
chown -R root:root dist-newstyle/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment