1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Re-use GITHUB_ACTION variables for filtering bundler examples.

This commit is contained in:
Hiroshi SHIBATA 2019-08-12 08:23:27 +09:00
parent e96321d006
commit 8a8f680f01
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 4 additions and 7 deletions

View file

@ -37,6 +37,5 @@ jobs:
env:
TESTOPTS: "$JOBS -q --tty=no"
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
CI: "true"
- name: Leaked Globals
run: make -s leaked-globals

View file

@ -37,7 +37,5 @@ jobs:
- run: make $JOBS
- name: make test-bundler/test-bundled-gems
run: make -s ${{ matrix.test_task }}
env:
CI: "true"
- name: Leaked Globals
run: make -s leaked-globals

View file

@ -56,7 +56,7 @@ RSpec.describe Bundler::Source do
context "with a different version" do
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "< 1.5") }
context "with color", :non_windows do
context "with color", :no_color_tty do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the spec name and version and locked spec version" do
@ -77,7 +77,7 @@ RSpec.describe Bundler::Source do
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.6.1", :platform => rb) }
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
context "with color", :non_windows do
context "with color", :no_color_tty do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the locked spec version in yellow" do
@ -98,7 +98,7 @@ RSpec.describe Bundler::Source do
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.7.1", :platform => rb) }
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
context "with color", :non_windows do
context "with color", :no_color_tty do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the locked spec version in green" do

View file

@ -73,7 +73,7 @@ RSpec.configure do |config|
config.filter_run_excluding :git => RequirementChecker.against(git_version)
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])
config.filter_run_excluding :ruby_repo => !(ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"]).nil?
config.filter_run_excluding :non_windows => Gem.win_platform? || ENV["CI"]
config.filter_run_excluding :no_color_tty => Gem.win_platform? || !!ENV["GITHUB_ACTION"]
config.filter_run_when_matching :focus unless ENV["CI"]