Skip to content
Permalink
Browse files

Ruby 2.7

  • Loading branch information
jodosha committed Jan 14, 2020
1 parent 525d16e commit 182ad95d391cd60517bedc9fa462a3063add54dc
Showing with 88 additions and 35 deletions.
  1. +32 −6 .circleci/config.yml
  2. +55 −0 .drone.yml
  3. +0 −28 .travis.yml
  4. +1 −1 README.md
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -163,5 +188,6 @@ workflows:
- "ruby-2.4"
- "ruby-2.5"
- "ruby-2.6"
- "ruby-2.7"
- "jruby-9.1"
- "jruby-9.2"
@@ -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

This file was deleted.

@@ -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)

0 comments on commit 182ad95

Please sign in to comment.
You can’t perform that action at this time.