From f08db93d74c87e1fb0e399232d88fccbf4e3dc47 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Mon, 24 Apr 2017 00:05:46 +0200 Subject: [PATCH] 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 :) --- test/scripts/travis.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/scripts/travis.sh b/test/scripts/travis.sh index 2697001..27cc9be 100755 --- a/test/scripts/travis.sh +++ b/test/scripts/travis.sh @@ -3,6 +3,13 @@ set -x 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 export NO_COVERAGE="true" bundle exec rake --trace