build: fix broken CI on newer rubies (#9954) · jekyll/jek...
mattr-
·
2026-03-30
·
via Recent Commits to jekyll:master
| Original file line number | Diff line number | Diff line change |
|---|
@@ -183,6 +183,7 @@ jekyllized
|
183 | 183 | jekylllayoutconcept |
184 | 184 | jekyllrb |
185 | 185 | jekyllthemes |
| 186 | +jekyllup |
186 | 187 | jemoji |
187 | 188 | jmcglone |
188 | 189 | johnreilly |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -#!/bin/bash |
| 1 | +#!/usr/bin/env bash |
2 | 2 | # ----------------------------------------------------------------------------- |
3 | 3 | # If you send us a ruby then we use that, if you do not then we test with |
4 | 4 | # whatever we can detect, this way you can run both suites when you test out |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,16 +35,9 @@ else
|
35 | 35 | fi |
36 | 36 | |
37 | 37 | # Tests only pass when timezone offset is zero. |
38 | | -TZ=UTC |
| 38 | +export TZ=UTC |
39 | 39 | |
40 | 40 | for ruby in $rubies; do |
41 | | -if [[ "$ruby" == "jruby" ]] |
42 | | -then |
43 | | - testopts="" |
44 | | -else |
45 | | - testopts="--profile" |
46 | | -fi |
47 | | - |
48 | 41 | if [[ $# -lt 1 ]] |
49 | 42 | then |
50 | 43 | set -x |
@@ -53,6 +46,6 @@ for ruby in $rubies; do
|
53 | 46 | else |
54 | 47 | set -x |
55 | 48 | time $ruby -S bundle exec ruby -I test \ |
56 | | -"$@" $testops |
| 49 | +"$@" $testopts |
57 | 50 | fi |
58 | 51 | done |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ def render_and_write
|
64 | 64 | assert_equal "All the properties.\n", regular_page["content"] |
65 | 65 | assert_equal "properties.html", regular_page["name"] |
66 | 66 | |
67 | | -basic_attrs = %w(dir name path url excerpt) |
| 67 | +basic_attrs = %w(dir name path url) |
68 | 68 | attrs = { |
69 | 69 | "content" => nil, |
70 | 70 | "dir" => "/", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。