Skip to content

Instantly share code, notes, and snippets.

@josevalim
Last active May 22, 2024 10:06
Show Gist options
  • Select an option

  • Save josevalim/a5e747c90a72e40a4b52062ea6919877 to your computer and use it in GitHub Desktop.

Select an option

Save josevalim/a5e747c90a72e40a4b52062ea6919877 to your computer and use it in GitHub Desktop.

Revisions

  1. josevalim revised this gist Nov 27, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion watcher.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # You will need fswatch installed (available in homebrew and friends)
    # The command below will run tests and wait until fswatch writes something.
    # The --stale flag will only run stale entries, it requires Elixir v1.3.
    fswatch lib/ test/ | MIX_ENV=test mix do test --stale, run --no-halt -e "IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart()"
    fswatch lib/ test/ | mix test --stale --listen-on-stdin
  2. josevalim revised this gist Jul 1, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions watcher.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    # You will need fswatch installed (available in homebrew and friends)
    # The command below will run tests and wait until fswatch writes something.
    # The --stale flag will only run stale entries, it requires Elixir v1.3.
    fswatch lib/ test/ | MIX_ENV=test mix do test --stale, run --no-halt -e "IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart()"
  3. josevalim revised this gist Jul 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion watcher.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    # You will need fswatch installed (available in homebrew and friends)
    fswatch lib/ test/ | elixir -e "Task.start fn -> IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart() end" --no-halt -S mix test --stale
    fswatch lib/ test/ | MIX_ENV=test mix do test --stale, run --no-halt -e "IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart()"
  4. josevalim revised this gist Jul 1, 2016. No changes.
  5. josevalim renamed this gist Jul 1, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. josevalim revised this gist Jul 1, 2016. No changes.
  7. josevalim created this gist Jul 1, 2016.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # You will need fswatch installed (available in homebrew and friends)
    fswatch lib/ test/ | elixir -e "Task.start fn -> IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart() end" --no-halt -S mix test --stale