Skip to content

Instantly share code, notes, and snippets.

@davekonopka
Created March 23, 2013 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davekonopka/5226204 to your computer and use it in GitHub Desktop.
Save davekonopka/5226204 to your computer and use it in GitHub Desktop.
TeamCity RSpec Order
echo "##teamcity[setParameter name='env.SEED_NUMBER' value='$(git rev-parse HEAD | tr -d 'a-z' | cut -b 1-5)']"
echo "To replicate the order on your machine:"
echo "rake spec SPEC_OPTS=\"--order random:$(git rev-parse HEAD | tr -d 'a-z' | cut -b 1-5)\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment