Skip to content

Commit

Permalink
Add debugger detection in ruby files for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Tino Vazquez committed Feb 14, 2019
1 parent 4f2e685 commit efa8626
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis/tests/01-rubocop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,16 @@
# lint ruby code

ln -s share/linters/.rubocop.yml . && rubocop

rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

# check for require 'pry'
find . -name "*.rb"|xargs grep 'require'|grep "pry\|pry-byebug"

rc=$?; if [[ $rc != 1 ]]; then exit 1; fi

find src/cli/* \( -path src/cli/one_helper -o -path src/cli/etc \) -prune -o -print |xargs grep 'require'|grep "pry\|pry-byebug"

rc=$?; if [[ $rc != 1 ]]; then exit 1; fi

exit 0

0 comments on commit efa8626

Please sign in to comment.