Commit ad3d6c3f authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

feat(ci): Try to fix test CI step for newer pkgs.nix

parent 13aff31f
......@@ -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:
......
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