Crawl CircleCI's the latest artifact file specified.
$ gem install circleci_crawler
Crawl simplecov.gem result json:
$ circleci_crawler --project-path="github/your_account_name/your_repository_name" \
--api-token=your_circleci_api_token \
--path="artifact-file/.last_run.json" | jq
# {
# "result": {
# "covered_percent": 83.37
# }
# }
Or
crawler = CircleciCrawler::Crawler.new(
project_path: 'github/your_account_name/your_repository_name',
api_token: 'your_circleci_api_token',
path: 'artifact-file/.last_run.json')
puts crawler.crawl
The gem is available as open source under the terms of the MIT License.