Merge branch 'master' into rubocop-Lint-AssignmentInCondition

This commit is contained in:
Olle Jonsson 2019-02-25 23:25:26 +01:00 committed by GitHub
commit 9cd764b2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 6 deletions

View File

@ -1,5 +1,4 @@
version: "2"
plugins:
rubocop:
enabled: true
enabled: false

View File

@ -1,11 +1,24 @@
language: ruby
cache: bundler
rvm:
- 2.3
- 2.4
- 2.5
- 2.6
- ruby-head
jobs:
include:
- stage: linting
rvm: ruby-2.4.1 # Pre-installed on TravisCI
install: true # Do not bundle install
script: gem install rubocop --no-document && rubocop
stages:
- linting
- test
deploy:
provider: rubygems
api_key:
@ -15,4 +28,3 @@ deploy:
tags: true
repo: lostisland/faraday
rvm: 2.5

View File

@ -2,9 +2,10 @@
require 'rake/testtask'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :test
desc 'Run all tests'
task :test do
exec 'rspec'
end
task :test => [:spec]