mirror of https://github.com/tailix/libkernaux.git
Common: lint mruby and fix Ruby CI
This commit is contained in:
parent
53d11060a3
commit
c485d94d86
|
@ -50,7 +50,7 @@ ruby_freebsd_task:
|
||||||
- sudo make install
|
- sudo make install
|
||||||
ruby_build_script:
|
ruby_build_script:
|
||||||
- cd pkgs/ruby
|
- cd pkgs/ruby
|
||||||
- bundle install
|
- ./bin/setup
|
||||||
- bundle exec rake compile
|
- bundle exec rake compile
|
||||||
ruby_test_script:
|
ruby_test_script:
|
||||||
- cd pkgs/ruby
|
- cd pkgs/ruby
|
||||||
|
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 3.0
|
||||||
- name: dependencies
|
- name: dependencies
|
||||||
run: sudo apt-get --yes install cppcheck rake
|
run: sudo apt-get --yes install cppcheck rake
|
||||||
- name: autogen
|
- name: autogen
|
||||||
|
@ -26,6 +29,12 @@ jobs:
|
||||||
- working-directory: vendor/mruby
|
- working-directory: vendor/mruby
|
||||||
name: test
|
name: test
|
||||||
run: MRUBY_CONFIG=../../pkgs/mruby/build_config.rb rake test
|
run: MRUBY_CONFIG=../../pkgs/mruby/build_config.rb rake test
|
||||||
|
- working-directory: pkgs/mruby
|
||||||
|
name: setup
|
||||||
|
run: ./bin/setup
|
||||||
|
- working-directory: pkgs/mruby
|
||||||
|
name: lint
|
||||||
|
run: rake
|
||||||
- working-directory: pkgs/mruby
|
- working-directory: pkgs/mruby
|
||||||
name: cppcheck
|
name: cppcheck
|
||||||
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
|
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
|
||||||
|
|
|
@ -25,8 +25,8 @@ jobs:
|
||||||
- name: install
|
- name: install
|
||||||
run: sudo make install
|
run: sudo make install
|
||||||
- working-directory: pkgs/ruby
|
- working-directory: pkgs/ruby
|
||||||
name: bundle
|
name: setup
|
||||||
run: bundle install
|
run: ./bin/setup
|
||||||
- working-directory: pkgs/ruby
|
- working-directory: pkgs/ruby
|
||||||
name: compile
|
name: compile
|
||||||
run: rake compile
|
run: rake compile
|
||||||
|
|
|
@ -3,7 +3,8 @@ require:
|
||||||
- rubocop-rake
|
- rubocop-rake
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 3.0
|
# TODO: Explore which exact syntax version mruby is compatible with
|
||||||
|
TargetRubyVersion: 2.7
|
||||||
DisplayCopNames: true
|
DisplayCopNames: true
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue