Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit be25cb7

Browse files
committed
Updated ci build scripts (from rspec-dev)
1 parent 78e02cd commit be25cb7

File tree

9 files changed

+35
-23
lines changed

9 files changed

+35
-23
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
name: RSpec CI
@@ -13,7 +13,7 @@ on:
1313
- '*'
1414
jobs:
1515
test:
16-
name: Ruby ${{ matrix.ruby }}
16+
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || "" }}
1717
runs-on: ubuntu-20.04
1818
strategy:
1919
matrix:
@@ -27,19 +27,42 @@ jobs:
2727
- 2.2
2828
- 2.1.9
2929
- ruby-head
30+
env:
31+
-
32+
DIFF_LCS_VERSION: "> 1.4.3"
33+
include:
34+
- ruby: jruby-9.2.13.0
35+
env:
36+
JRUBY_OPTS: "--dev"
37+
- ruby: jruby-9.1.17.0
38+
bundler: 1
39+
env:
40+
JRUBY_OPTS: "--dev"
41+
- ruby: 2.7
42+
name_extra: "with diff-lcs 1.3"
43+
env:
44+
DIFF_LCS_VERSION: "~> 1.3.0"
45+
- ruby: 2.7
46+
name_extra: "with diff-lcs 1.4.3"
47+
env:
48+
DIFF_LCS_VERSION: "1.4.3"
3049
fail-fast: false
31-
continue-on-error: ${{ matrix.ruby == 'jruby-9.2.13.0' || endsWith(matrix.ruby, 'head') }}
50+
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
3251
steps:
3352
- uses: actions/checkout@v2
3453
- uses: ruby/setup-ruby@v1
3554
with:
36-
bundler: ${{ (matrix.ruby == 'jruby-9.1.17.0' && 1) || 2 }}
55+
bundler: ${{ matrix.bundler || 2 }}
3756
ruby-version: ${{ matrix.ruby }}
3857
bundler-cache: true
3958
- run: script/update_rubygems_and_install_bundler
59+
env: ${{ matrix.env }}
4060
- run: script/clone_all_rspec_repos
61+
env: ${{ matrix.env }}
4162
- run: bundle install --binstubs --standalone
63+
env: ${{ matrix.env }}
4264
- run: script/run_build
65+
env: ${{ matrix.env }}
4366

4467
windows:
4568
name: Ruby ${{ matrix.ruby }} (Windows)

.rubocop_rspec_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# This file contains defaults for RSpec projects. Individual projects

.travis.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# In order to install old Rubies, we need to use old Ubuntu distibution.
@@ -20,24 +20,13 @@ rvm:
2020
- 1.9.3
2121
- 2.0.0
2222
- ree
23-
- rbx-3
24-
- jruby-9.1.7.0 # pin JRuby to this until travis/rvm can install later versions
25-
- jruby-head
2623
- jruby-1.7
2724
env:
2825
- JRUBY_OPTS='--dev'
2926
matrix:
3027
include:
3128
- rvm: jruby-1.7
3229
env: JRUBY_OPTS='--dev --1.8'
33-
- rvm: 2.7.1
34-
env: DIFF_LCS_VERSION="~> 1.3.0"
35-
- rvm: 2.7.1
36-
env: DIFF_LCS_VERSION="1.4.3"
37-
allow_failures:
38-
- rvm: jruby-head
39-
- rvm: ruby-head
40-
- rvm: rbx-3
4130
fast_finish: true
4231
branches:
4332
only:

script/ci_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

script/predicate_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {

script/run_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/update_rubygems_and_install_bundler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:30:59+00:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

0 commit comments

Comments
 (0)