Skip to content

Commit

Permalink
Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Jan 14, 2020
1 parent 525d16e commit 182ad95
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 35 deletions.
38 changes: 32 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
"ruby-2.3":
docker:
- image: hanami/ruby-2.3
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand All @@ -32,7 +32,7 @@ jobs:
"ruby-2.4":
docker:
- image: hanami/ruby-2.4
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand All @@ -57,7 +57,7 @@ jobs:
"ruby-2.5":
docker:
- image: hanami/ruby-2.5
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand All @@ -82,7 +82,32 @@ jobs:
"ruby-2.6":
docker:
- image: hanami/ruby-2.6
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./vendor/bundle
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
# run tests!
- run:
name: run tests
command: |
./script/ci
"ruby-2.7":
docker:
- image: hanami/ruby-2.7
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand All @@ -107,7 +132,7 @@ jobs:
"jruby-9.1":
docker:
- image: hanami/jruby-9.1
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand All @@ -132,7 +157,7 @@ jobs:
"jruby-9.2":
docker:
- image: hanami/jruby-9.2
working_directory: ~/hanami-utils
working_directory: ~/hanami-controller
steps:
- checkout
# Download and cache dependencies
Expand Down Expand Up @@ -163,5 +188,6 @@ workflows:
- "ruby-2.4"
- "ruby-2.5"
- "ruby-2.6"
- "ruby-2.7"
- "jruby-9.1"
- "jruby-9.2"
55 changes: 55 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,59 @@
kind: pipeline
name: ruby-2-7
group: build

steps:
- name: install
image: ruby:2.7
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- ruby -v
- gem install bundler
- bundle install --jobs=3 --retry=3

- name: unit
image: ruby:2.7
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- COVERAGE=true bundle exec rake spec:unit

- name: isolation
image: ruby:2.7
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- ./script/test isolation

- name: integration
image: ruby:2.7
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- ./script/test integration

- name: quality
image: ruby:2.7
environment:
CODECOV_TOKEN:
from_secret: codecov
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- CI=true bundle exec rake codecov:upload

volumes:
- name: bundle
temp: {}

---
kind: pipeline
name: ruby-2-6
group: build

Expand Down
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Complete, fast and testable actions for Rack and [Hanami](http://hanamirb.org)
## Status

[![Gem Version](https://badge.fury.io/rb/hanami-controller.svg)](https://badge.fury.io/rb/hanami-controller)
[![TravisCI](https://travis-ci.org/hanami/controller.svg?branch=master)](https://travis-ci.org/hanami/controller)
[![Build Status](https://ci.hanamirb.org/api/badges/hanami/controller/status.svg)](https://ci.hanamirb.org/hanami/controller)
[![CircleCI](https://circleci.com/gh/hanami/controller/tree/master.svg?style=svg)](https://circleci.com/gh/hanami/controller/tree/master)
[![Test Coverage](https://codecov.io/gh/hanami/controller/branch/master/graph/badge.svg)](https://codecov.io/gh/hanami/controller)
[![Depfu](https://badges.depfu.com/badges/7cd17419fba78b726be1353118fb01de/overview.svg)](https://depfu.com/github/hanami/controller?project=Bundler)
Expand Down

0 comments on commit 182ad95

Please sign in to comment.