-
-
Save apeckham/5761058 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| killall -m -9 zeus || true | |
| rm -f .zeus.sock | |
| RUBYMINE=/Applications/RubyMine.app | |
| export RUBYLIB=$RUBYMINE/rb/testing/patch/common:$RUBYMINE/rb/testing/patch/bdd | |
| ruby -rteamcity/spec/runner/formatter/teamcity/formatter -e '' | |
| zeus start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # Suppress zeus' whining about how it won't use your RAILS_ENV | |
| ENV.delete('RAILS_ENV') | |
| # Zeus 0.13.2 parses options badly. RubyMine will invoke this file like this: | |
| # rspec_runner.rb spec/my_cool_file.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter | |
| # | |
| # ...but Zeus will parse those options thinking --require is meant for it, and die. | |
| # If the test file is moved to the end, it dies less. | |
| ARGV.push(ARGV.shift) | |
| # Add rspec to the beginning of the commands sent to Zeus | |
| ARGV.unshift 'rspec' | |
| require 'rubygems' | |
| require 'zeus' | |
| load Gem.bin_path('zeus', 'zeus') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment