Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 9e78923

Browse files
author
Dorothee Laugwitz
authored
Replace Travis CI with CircleCI (#80)
* Removes support for Ruby <= 2.5 * Removes support for RBX * Sets required ruby version to >= 2.6 * Adds code quality checks with Code Climate for target version * Adds Ruby version checks for >= 2.7 * Pins simplecov to version ~> 0.21.0 to make the rest-reporter work [ch7627](https://app.clubhouse.io/shipcloud/story/7627)
1 parent 8af35b9 commit 9e78923

8 files changed

Lines changed: 79 additions & 46 deletions

File tree

.circleci/config.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
version: 2.1
2+
jobs:
3+
build:
4+
parameters:
5+
image-tag:
6+
description: The target docker image
7+
type: string
8+
check-code-quality:
9+
description: Execute style checks in build workflow
10+
type: boolean
11+
default: true
12+
docker:
13+
- image: circleci/<< parameters.image-tag >>
14+
environment:
15+
LANG: en_US.UTF-8
16+
BUNDLE_DISABLE_VERSION_CHECK: 1
17+
steps:
18+
- checkout
19+
- run:
20+
name: Install ruby dependencies
21+
command: gem update --system; bin/setup
22+
- when:
23+
condition: << parameters.check-code-quality >>
24+
steps:
25+
- run:
26+
name: Install Code Climate test-reporter
27+
command: |
28+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
29+
chmod +x ./cc-test-reporter
30+
- run:
31+
name: Prepare Code Climate test-reporter
32+
command: ./cc-test-reporter before-build
33+
- run:
34+
name: Execute specs
35+
command: bundle exec rake
36+
- when:
37+
condition: << parameters.check-code-quality >>
38+
steps:
39+
- run:
40+
name: Report coverage
41+
command: ./cc-test-reporter after-build --exit-code $?
42+
43+
workflows:
44+
build:
45+
jobs:
46+
- build:
47+
matrix:
48+
parameters:
49+
image-tag:
50+
- "ruby:2.6"
51+
version-check:
52+
jobs:
53+
- build:
54+
matrix:
55+
parameters:
56+
image-tag:
57+
- "ruby:2.7"
58+
- "ruby:3.0"
59+
- "ruby:latest"
60+
- "jruby:latest"
61+
check-code-quality:
62+
- false

.hound.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
- Add attr_accessor for `additional_services` to class `Shipcloud::Shipment` to be able to access the additional_services attribute at the shipment object.
55

66
### Changed
7+
- Set required ruby version to >= 2.6
8+
- Replace Travis CI with CircleCI
9+
- Specify simplecov to be ~> 0.21.0
710

811
### Deprecated
912

1013
### Removed
14+
- Drop support for Ruby <= 2.5
15+
- Drop support for RBX
1116

1217
### Fixed
1318

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
[![Code Climate](https://codeclimate.com/github/shipcloud/shipcloud-ruby.png)](https://codeclimate.com/github/shipcloud/shipcloud-ruby) [![Build Status](https://travis-ci.org/shipcloud/shipcloud-ruby.png?branch=master)](https://travis-ci.org/shipcloud/shipcloud-ruby)
1+
[![CircleCI](https://circleci.com/gh/shipcloud/shipcloud-ruby/tree/master.svg?style=svg)](https://circleci.com/gh/shipcloud/shipcloud-ruby/tree/master)
2+
[![Maintainability](https://api.codeclimate.com/v1/badges/c8c3cba2068e5d649567/maintainability)](https://codeclimate.com/github/shipcloud/shipcloud-ruby/maintainability)
3+
[![Test Coverage](https://api.codeclimate.com/v1/badges/c8c3cba2068e5d649567/test_coverage)](https://codeclimate.com/github/shipcloud/shipcloud-ruby/test_coverage)
24

35
# shipcloud
46

bin/setup

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
gem install bundler -v "~> 2.0"
7+
bundle install

install-cc-test-reporter.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

shipcloud.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Gem::Specification.new do |spec|
1919
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2020
spec.require_paths = ["lib"]
2121

22-
spec.required_ruby_version = ">= 2.3"
22+
spec.required_ruby_version = ">= 2.6"
2323

2424
spec.add_runtime_dependency "json", ">= 1.8.0"
2525
spec.add_development_dependency "pry", "~> 0.10"
2626
spec.add_development_dependency "rake", "~> 13.0"
2727
spec.add_development_dependency "rspec", "~> 3.6"
2828
spec.add_development_dependency "rubocop", "~> 0.71.0"
2929
spec.add_development_dependency "rubocop-performance"
30-
spec.add_development_dependency "simplecov"
30+
spec.add_development_dependency "simplecov", "~> 0.21.0"
3131
spec.add_development_dependency "webmock", "~> 3.0"
3232
end

0 commit comments

Comments
 (0)