blob: 9330d7cd076c3700ddafa9fee1d884af88b0bd44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
export PATH=/usr/local/bin:$PATH
ruby -v;
# remove the Gemfile.lock and try again if bundler fails.
# This should take care of Gemfile changes that result in "bad" bundles without forcing us to rebundle every time
bundle install --without docgen --path vendor/bundle || ( rm Gemfile.lock && bundle install --path vendor/bundle )
bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec;
RSPEC_RETURNCODE=$?
# exit with the result of running rspec
exit $RSPEC_RETURNCODE
|