Skip to content

Commit d1c1a53

Browse files
committed
Use rubocop in .travis.yml
1 parent d4521db commit d1c1a53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ matrix:
2626
include:
2727
- os: linux
2828
rvm: 2.0
29-
env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_MPC="yes"
29+
env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_MPC="yes" RUBOCOP="yes"
3030
- os: linux
3131
rvm: 2.3.0
3232
env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_MPC="yes"
@@ -66,6 +66,8 @@ script:
6666
- export CFLAGS="-Werror"
6767
# Install ruby gem
6868
- gem install symengine-0.1.0.gem --install-dir $HOME --verbose -- -DSymEngine_DIR=$our_install_dir
69+
# Check for code style using rubocop
70+
- if [[ "${RUBOCOP}" == "yes" ]]; then rubocop; fi
6971

7072
# Test ruby gem
7173
- gem install gem-path --no-ri --no-rdoc

0 commit comments

Comments
 (0)