{"id":19696110,"url":"https://github.com/juanmanuelramallo/marathon","last_synced_at":"2026-05-15T04:03:22.381Z","repository":{"id":103683891,"uuid":"196222533","full_name":"juanmanuelramallo/marathon","owner":"juanmanuelramallo","description":"Running shell commands in parallel and grouped in steps","archived":false,"fork":false,"pushed_at":"2020-07-28T04:37:16.000Z","size":46,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T14:23:30.947Z","etag":null,"topics":["bash","marathon","rubygem","runner"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juanmanuelramallo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-10T14:40:43.000Z","updated_at":"2019-07-28T20:03:52.000Z","dependencies_parsed_at":"2023-07-07T00:02:04.639Z","dependency_job_id":null,"html_url":"https://github.com/juanmanuelramallo/marathon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/juanmanuelramallo/marathon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanmanuelramallo%2Fmarathon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanmanuelramallo%2Fmarathon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanmanuelramallo%2Fmarathon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanmanuelramallo%2Fmarathon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juanmanuelramallo","download_url":"https://codeload.github.com/juanmanuelramallo/marathon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanmanuelramallo%2Fmarathon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33053144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","marathon","rubygem","runner"],"created_at":"2024-11-11T19:33:45.208Z","updated_at":"2026-05-15T04:03:22.366Z","avatar_url":"https://github.com/juanmanuelramallo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marathon\n\n[![CircleCI](https://circleci.com/gh/juanmanuelramallo/marathon.svg?style=shield)](https://circleci.com/gh/juanmanuelramallo/marathon)\n[![Maintainability](https://api.codeclimate.com/v1/badges/c987a96aa491aa1d85bd/maintainability)](https://codeclimate.com/github/juanmanuelramallo/marathon/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/c987a96aa491aa1d85bd/test_coverage)](https://codeclimate.com/github/juanmanuelramallo/marathon/test_coverage)\n\nMarathon allows you to run several bash commands and configure them by steps, so if any previous step has failed the execution gets stoped after the current step ends.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'marathon'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install marathon\n\n## Usage\n\n```bash\n$ marathon -c 'command A in first step','command B in first step' -c 'command C in second step','command D in second step' -c 'command E in third step','you get the idea'\n```\n\nSome real life examples would be:\n- To set rspec to run after all linters and static analizers:\n```bash\nmarathon -c 'yarn test','bundle exec rubocop','bundle exec brakeman','yarn run js-lint','yarn run css-lint' -c 'bundle exec rspec'\n```\n\n- To set rspec to run after rubocop and after frontend linters:\n```bash\nmarathon -c 'yarn run js-lint','yarn run css-lint' -c 'bundle exec rubocop' -c 'bundle exec rspec'\n```\n\nOrder matters!\n\n### Options\n\n- Commands: `-c` List of commands of one step. You should enclose your commands with a single apostrophe and separate them using commas. If you want to specify a different step just write this option again.\n```bash\nmarathon -c 'a command in step 1','other command in step 1','you get the idea' -c 'a command in step 2'\n```\n- Processes: `-p` `--processes` Number of processes to use to run the commands in every step. Only one process (main) by default.\n```bash\nmarathon -c 'sleep 1','sleep 1' -p 2\n```\n- Verbose: `-v` `--verbose` As you may already guess, it prints more information on execution. Prints a message after the command has ended. And no matter the if the command was successful or not, the output is always displayed on stdout.\n```bash\nmarathon -c 'echo Hola' -v\n```\n\n![Failed example image](https://i.imgur.com/jL9oGih.png)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n[Read the docs](http://marathon-docs.s3-website-us-west-2.amazonaws.com/)\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/juanmanuelramallo/marathon. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Marathon project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanmanuelramallo%2Fmarathon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuanmanuelramallo%2Fmarathon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanmanuelramallo%2Fmarathon/lists"}