Skip to content

Sider Runners πŸƒπŸƒβ€β™€οΈπŸ’¨

License

Notifications You must be signed in to change notification settings

hajime-fixstars-otoshi/runners

Repository files navigation

Sider Runners

CircleCI

This is a Sider analyzer framework.

See also another related project, called devon_rex.

Supported analyzers

Each analyzer can be available as a Docker image.

(in alphabetical order)

Developer guide

Please follow these instructions.

Prerequisites

The latest version recommended.

  • Ruby
  • Bundler
  • Docker

Setup

When checking out the source code, run the following command:

$ bundle install

Next, run the following command to show available commands in the project:

$ bundle exec rake --tasks

These commands will help you develop! πŸ˜‰

Project structure

$ tree -L 1 -d
.
β”œβ”€β”€ bin
β”œβ”€β”€ images
β”œβ”€β”€ lib
β”œβ”€β”€ sig
└── test

5 directories
  • bin: Entry point to launch a runner
  • images: Docker images
  • lib: Core programs
  • sig: Ruby signature files for type-checking
  • test: Unit tests and smoke tests

Testing

Unit test

You can run unit tests via the rake test command as follow.

All tests:

$ bundle exec rake test

Only a test file:

$ bundle exec rake test TEST=test/cli_test.rb

Only a test method:

$ bundle exec rake test TEST=test/cli_test.rb TESTOPTS='--name=test_parsing_options'

Smoke test

You can run smoke tests via the rake docker:smoke command as follow:

$ bundle exec rake docker:smoke ANALYZER=rubocop [ONLY=test1,test2,...] [SHOW_TRACE=true]
  • ONLY: Specify test name(s). You can specify a comma-separated list.
  • SHOW_TRACE: Show trace log to console. Useful to debug.

If you want to run tests right after changing code, you can run one command as follow:

$ bundle exec rake docker:build docker:smoke ANALYZER=rubocop

License

See LICENSE.