Skip to content

Commit

Permalink
Update badges, CI and coveralls reporting (#29)
Browse files Browse the repository at this point in the history
* Update `.coveralls.yml` to point to `semaphore`
* On `.semaphore/semaphore.yml`:
    * Rename pipeline to `Run specs in all supported rubies'
    * Extract `checkout` command to `global_job_config.prologue`
    * Add `3.2.2`, `3.1.4`, `3.0.6`, `2.7.8` tasks
    * Correctly configure main `3.2.2` task to publish test report, now being picked up by Semaphore 
![Screenshot 2023-05-09 at 4 55 13 PM](https://github.com/gonzedge/rambling-trie/assets/218312/de876e83-f569-48b9-b2f1-4a33c8c166c5)
    * Remove unnecessary formatters from non-`3.2.2` tasks
* On badges:
    * Change `README.md` to have one badge per line instead of all in one giant line
    * Add RubyGems downloads badge
    * Add CodeClimate issues badge
    * Update docs badge to point directly to [rubydoc.info/gems/rambling-trie](http://rubydoc.info/gems/rambling-trie)
    * Update license badge to one from shields.io
  • Loading branch information
gonzedge authored May 9, 2023
1 parent 143b183 commit abb0ac6
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
service_name: travis-ci
service_name: semaphore
116 changes: 72 additions & 44 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -1,254 +1,282 @@
version: v1.0
name: ruby
name: Run specs in all supported rubies
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
global_job_config:
prologue:
commands:
- checkout
blocks:
- name: 3.2.1
- name: 3.2.2
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.2.1
- sem-version ruby 3.2.2
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec --format RspecJunitFormatter --out report.xml
epilogue:
always:
commands:
- test-results publish junit.xml
- '[[ -f report.xml ]] && test-results publish report.xml'
- name: 3.2.1
dependencies: []
task:
prologue:
commands:
- sem-version ruby 3.2.1
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec
- name: 3.2.0
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.2.0
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.1.4
dependencies: []
task:
prologue:
commands:
- sem-version ruby 3.1.4
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec
- name: 3.1.3
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.1.3
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.1.2
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.1.2
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.1.1
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.1.1
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.1.0
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.1.0
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.6
dependencies: []
task:
prologue:
commands:
- sem-version ruby 3.0.6
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec
- name: 3.0.5
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.5
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.4
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.4
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.3
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.3
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.2
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.2
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.1
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.1
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 3.0.0
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 3.0.0
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.8
dependencies: []
task:
prologue:
commands:
- sem-version ruby 2.7.8
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec
- name: 2.7.7
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.7
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.6
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.6
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.5
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.5
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.4
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.4
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.3
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.3
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.2
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.2
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.1
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.1
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
- name: 2.7.0
dependencies: []
task:
prologue:
commands:
- checkout
- sem-version ruby 2.7.0
- bundle install
jobs:
- name: bundle exec rspec
commands:
- bundle exec rspec --format RspecJunitFormatter --out junit.xml --format documentation
- bundle exec rspec
after_pipeline:
task:
jobs:
Expand Down
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Rambling Trie

[![Gem Version][badge_fury_badge]][badge_fury_link] [![Build Status][semaphore_ci_badge]][semaphore_ci_link] [![Code Climate][code_climate_badge]][code_climage_link] [![Coverage Status][coveralls_badge]][coveralls_link] [![Documentation Status][inch_ci_badge]][inch_ci_link] [![License][license_badge]][license_link]
[![Gem Version][badge_fury_badge]][badge_fury_link]
[![Downloads][downloads_badge]][downloads_link]
[![Build Status][semaphore_ci_badge]][semaphore_ci_link]
[![Coverage Status][coveralls_badge]][coveralls_link]
[![Code Climate][code_climate_badge]][code_climate_link]
[![Issue Count][code_climate_issues_badge]][code_climate_link]
[![Documentation Status][inch_ci_badge]][inch_ci_link]
[![License][license_badge]][license_link]

The Rambling Trie is a Ruby implementation of the [trie data structure][trie_wiki], which includes compression abilities and is designed to be very fast to traverse.

Expand Down Expand Up @@ -278,16 +285,19 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
[badge_fury_badge]: https://badge.fury.io/rb/rambling-trie.svg?version=2.3.0
[badge_fury_link]: https://badge.fury.io/rb/rambling-trie
[chruby]: https://github.com/postmodern/chruby
[code_climage_link]: https://codeclimate.com/github/gonzedge/rambling-trie
[code_climate_badge]: https://codeclimate.com/github/gonzedge/rambling-trie/badges/gpa.svg
[code_climate_issues_badge]: https://codeclimate.com/github/gonzedge/rambling-trie/badges/issue_count.svg
[code_climate_link]: https://codeclimate.com/github/gonzedge/rambling-trie
[coveralls_badge]: https://img.shields.io/coveralls/gonzedge/rambling-trie.svg
[coveralls_link]: https://coveralls.io/r/gonzedge/rambling-trie
[downloads_badge]: https://img.shields.io/gem/dt/rambling-trie.svg
[downloads_link]: https://rubygems.org/gems/rambling-trie
[gemnasium_badge]: https://gemnasium.com/gonzedge/rambling-trie.svg
[gemnasium_link]: https://gemnasium.com/gonzedge/rambling-trie
[github_user_gonzedge]: https://github.com/gonzedge
[inch_ci_badge]: https://inch-ci.org/github/gonzedge/rambling-trie.svg?branch=master
[inch_ci_link]: https://inch-ci.org/github/gonzedge/rambling-trie
[license_badge]: https://badges.frapsoft.com/os/mit/mit.svg?v=103
[inch_ci_link]: http://rubydoc.info/gems/rambling-trie
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/mit-license.php
[marshal]: https://ruby-doc.org/core-2.7.0/Marshal.html
[rambling_trie_configuration]: https://github.com/gonzedge/rambling-trie#configuration
Expand Down

0 comments on commit abb0ac6

Please sign in to comment.