Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Hating on HTML fixtures #1306

Merged
merged 4 commits into from
Feb 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions script/regen_fixtures.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# This script likely won't work as is for you, but is a good template for
# iterating over all rubies and regenerating HTML fixtures.

set -e

source /usr/local/share/chruby/chruby.sh

function switch_ruby() {
chruby $1
}

function regen() {
bundle check || bundle install
GENERATE=1 bundle exec rspec ./spec/rspec/core/formatters/ || true
}

for ruby in \
jruby-1.7.9 \
1.9.3-p392 \
2.0.0-p247 \
2.1.0-p0 \
rbx-2.2.3 \
ree-1.8.7-2012.02;
do
switch_ruby $ruby
ruby -v
if [ $(echo $ruby | grep jruby) ]
then
export JRUBY_OPTS=--1.8
regen
export JRUBY_OPTS=--1.9
regen
else
regen
fi
done

Loading