Skip to content

Commit

Permalink
Restore scripts/setup-test-deps and scripts/test
Browse files Browse the repository at this point in the history
  • Loading branch information
russtoku committed Nov 17, 2024
1 parent 6ef969d commit c39e9b7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scripts/setup-test-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

PACK_DIR=./.test-config/nvim/pack/conjure-tests/start

mkdir -p "$PACK_DIR"

if [ -d "$PACK_DIR/plenary.nvim" ]; then
echo "plenary.nvim already exists"
else
git clone https://github.com/nvim-lua/plenary.nvim.git "$PACK_DIR/plenary.nvim"
fi

if [ -d "$PACK_DIR/fennel.vim" ]; then
echo "fennel.vim already exists"
else
git clone https://github.com/bakpakin/fennel.vim.git "$PACK_DIR/fennel.vim"
fi

if [ -d "$PACK_DIR/aniseed" ]; then
echo "aniseed already exists"
else
git clone https://github.com/Olical/aniseed.git "$PACK_DIR/aniseed"
fi

if [ -d "$PACK_DIR/conjure" ]; then
echo "conjure (symlink) already exists"
else
ln -s "${GITHUB_WORKSPACE:-$(pwd)}" "$PACK_DIR/conjure"
fi
6 changes: 6 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

XDG_CONFIG_HOME=$(pwd)/.test-config
export XDG_CONFIG_HOME

nvim --headless -c 'PlenaryBustedDirectory lua/conjure-spec'

0 comments on commit c39e9b7

Please sign in to comment.