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

Commit b19bbd8

Browse files
committed
Updated ci build scripts (from rspec-dev)
1 parent bbe3566 commit b19bbd8

File tree

9 files changed

+34
-25
lines changed

9 files changed

+34
-25
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 6 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-22T07:41:13+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,8 +13,8 @@ on:
1313
- '*'
1414
jobs:
1515
test:
16-
name: Ruby ${{ matrix.ruby }}
17-
runs-on: ubuntu-20.04
16+
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
17+
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
1818
strategy:
1919
matrix:
2020
ruby:
@@ -27,15 +27,35 @@ 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+
os: ubuntu-18.04
40+
env:
41+
JRUBY_OPTS: "--dev"
42+
- ruby: 2.7
43+
name_extra: "with diff-lcs 1.3"
44+
env:
45+
DIFF_LCS_VERSION: "~> 1.3.0"
46+
- ruby: 2.7
47+
name_extra: "with diff-lcs 1.4.3"
48+
env:
49+
DIFF_LCS_VERSION: "1.4.3"
3050
fail-fast: false
31-
continue-on-error: ${{ matrix.ruby == 'jruby-9.2.13.0' || endsWith(matrix.ruby, 'head') }}
51+
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
52+
env: ${{ matrix.env }}
3253
steps:
3354
- uses: actions/checkout@v2
3455
- uses: ruby/setup-ruby@v1
3556
with:
36-
bundler: ${{ (matrix.ruby == 'jruby-9.1.17.0' && 1) || 2 }}
57+
bundler: ${{ matrix.bundler || 2 }}
3758
ruby-version: ${{ matrix.ruby }}
38-
bundler-cache: true
3959
- run: script/update_rubygems_and_install_bundler
4060
- run: script/clone_all_rspec_repos
4161
- run: bundle install --binstubs --standalone

.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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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-22T07:41:13+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)