autotest 443 B

12345678910111213141516171819
  1. #!/usr/bin/env ruby
  2. # frozen_string_literal: true
  3. require_relative "./../.env"
  4. if ENV["DATA_STRUCTURES_RB_ENV"] == "development"
  5. require "pathname"
  6. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
  7. Pathname.new(__FILE__).realpath)
  8. require "rubygems"
  9. require "bundler/setup"
  10. load Gem.bin_path("minitest-autotest", "autotest")
  11. else
  12. $stderr.puts "ERROR: autotest should only be run during development"
  13. exit(1)
  14. end