Skip to content

Instantly share code, notes, and snippets.

@mfurquimdev
Last active February 20, 2023 23:20
Show Gist options
  • Save mfurquimdev/d8bd05f45c72be6f48f6cf0555ad263b to your computer and use it in GitHub Desktop.
Save mfurquimdev/d8bd05f45c72be6f48f6cf0555ad263b to your computer and use it in GitHub Desktop.
Automatically run Elixir unit tests inside docker upon change on ./lib/* files
#!/bin/bash
mix test
#!/bin/bash
apt update && apt install -y inotify-tools
inotifywait -q -m -e close_write -r lib/ | while read -r path event filename;
do
clear
echo -e "\n\n\033[1;7;37mExecuting ./execute.sh because $path$filename was $event\033[0;1;0m"
./execute.sh
done;
#!/bin/bash
docker run -it --rm -v "${PWD}:/app" -w /app elixir ./hotload.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment