Browse Source

Update CI

master
aeris 1 year ago
parent
commit
b3a51071e5
4 changed files with 33 additions and 27 deletions
  1. +16
    -13
      .drone.yml
  2. +5
    -2
      .travis.yml
  3. +6
    -6
      bin/rake
  4. +6
    -6
      bin/rspec

+ 16
- 13
.drone.yml View File

@@ -5,19 +5,22 @@ clone:
depth: 1

steps:
- name: test
image: aeris22/ruby:2.6-alpine
commands:
- bundle install
- rspec
- name: test
image: aeris22/ruby:2.6-alpine
commands:
- bundle install
- rspec

- name: notify
image: drillster/drone-email
settings:
host:
from_secret: smtp.host
skip_verify: true
from:
from_secret: smtp.from
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: smtp.host
skip_verify: true
from:
from_secret: smtp.from
when:
status: [ changed, failure ]
instance:
exclude:
- cloud.drone.io

+ 5
- 2
.travis.yml View File

@@ -3,5 +3,8 @@ sudo: false
language: ruby
cache: bundler
rvm:
- 2.6.0
before_install: gem install bundler -v 2.0.1
- 2.6.3
before_install:
- gem update --system
- gem install bundler


+ 6
- 6
bin/rake View File

@@ -10,17 +10,17 @@

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end
end

require "rubygems"


+ 6
- 6
bin/rspec View File

@@ -10,17 +10,17 @@

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end
end

require "rubygems"


Loading…
Cancel
Save