Fail when no-rails.Gemfile.lock contains a rails dependency
Since all rails dependencies somehow depend on activesupport, we only need to check for activesupport :)
This commit is contained in:
parent
df1c9b0350
commit
f08db93d74
1 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,13 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [[ ${BUNDLE_GEMFILE} =~ .*test/gemfiles/.*.Gemfile ]]; then
|
if [[ ${BUNDLE_GEMFILE} =~ .*test/gemfiles/.*.Gemfile ]]; then
|
||||||
|
if [[ ${BUNDLE_GEMFILE} =~ .*/no-rails.Gemfile ]]; then
|
||||||
|
if grep activesupport "${BUNDLE_GEMFILE}.lock"; then
|
||||||
|
echo "ERROR! no-rails.Gemfile.lock contains rails dependency!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# No coverage for other gemfiles, because some specs are disabled
|
# No coverage for other gemfiles, because some specs are disabled
|
||||||
export NO_COVERAGE="true"
|
export NO_COVERAGE="true"
|
||||||
bundle exec rake --trace
|
bundle exec rake --trace
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue