зеркало из https://github.com/github/ruby.git
Bundled gems test needs `prepare-gems`
`prepare-gems` downloads and extracts the bundled gems, and these gems are built by `build-exts` now.
This commit is contained in:
Родитель
b291c972fa
Коммит
91c05b34cd
|
@ -101,6 +101,11 @@ jobs:
|
|||
make
|
||||
if: ${{ steps.diff.outcome == 'failure' }}
|
||||
|
||||
- name: Prepare bundled gems
|
||||
run: |
|
||||
make -s prepare-gems
|
||||
if: ${{ steps.diff.outcome == 'failure' }}
|
||||
|
||||
- name: Test bundled gems
|
||||
run: |
|
||||
make -s test-bundled-gems
|
||||
|
|
|
@ -249,8 +249,6 @@ jobs:
|
|||
- run: make test
|
||||
- run: make install
|
||||
if: ${{ matrix.entry.check }}
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.entry.check }}
|
||||
- run: make test-tool
|
||||
if: ${{ matrix.entry.check }}
|
||||
- run: make test-all TESTS='-- ruby -ext-'
|
||||
|
|
|
@ -55,11 +55,11 @@ jobs:
|
|||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
|
||||
- run: make incs
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||
- run: make
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- name: make ${{ matrix.test_task }}
|
||||
run: |
|
||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`}
|
||||
|
|
|
@ -87,11 +87,11 @@ jobs:
|
|||
$SETARCH ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
|
||||
- run: $SETARCH make incs
|
||||
- run: $SETARCH make prepare-gems
|
||||
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||
- run: $SETARCH make
|
||||
- run: $SETARCH make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: $SETARCH make prepare-gems
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- name: Create dummy files in build dir
|
||||
run: |
|
||||
$SETARCH ./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
|
||||
|
|
|
@ -98,11 +98,11 @@ jobs:
|
|||
- name: Run configure
|
||||
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||
- run: make incs
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||
- run: make -j
|
||||
- run: make leaked-globals
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- run: make prepare-gems
|
||||
if: ${{ matrix.test_task == 'check' }}
|
||||
- name: Create dummy files in build dir
|
||||
run: |
|
||||
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
|
||||
|
|
Загрузка…
Ссылка в новой задаче