зеркало из 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
|
make
|
||||||
if: ${{ steps.diff.outcome == 'failure' }}
|
if: ${{ steps.diff.outcome == 'failure' }}
|
||||||
|
|
||||||
|
- name: Prepare bundled gems
|
||||||
|
run: |
|
||||||
|
make -s prepare-gems
|
||||||
|
if: ${{ steps.diff.outcome == 'failure' }}
|
||||||
|
|
||||||
- name: Test bundled gems
|
- name: Test bundled gems
|
||||||
run: |
|
run: |
|
||||||
make -s test-bundled-gems
|
make -s test-bundled-gems
|
||||||
|
|
|
@ -249,8 +249,6 @@ jobs:
|
||||||
- run: make test
|
- run: make test
|
||||||
- run: make install
|
- run: make install
|
||||||
if: ${{ matrix.entry.check }}
|
if: ${{ matrix.entry.check }}
|
||||||
- run: make prepare-gems
|
|
||||||
if: ${{ matrix.entry.check }}
|
|
||||||
- run: make test-tool
|
- run: make test-tool
|
||||||
if: ${{ matrix.entry.check }}
|
if: ${{ matrix.entry.check }}
|
||||||
- run: make test-all TESTS='-- ruby -ext-'
|
- run: make test-all TESTS='-- ruby -ext-'
|
||||||
|
|
|
@ -55,11 +55,11 @@ jobs:
|
||||||
- name: Run configure
|
- 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: ../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 incs
|
||||||
|
- run: make prepare-gems
|
||||||
|
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||||
- run: make
|
- run: make
|
||||||
- run: make leaked-globals
|
- run: make leaked-globals
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
if: ${{ matrix.test_task == 'check' }}
|
||||||
- run: make prepare-gems
|
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`}
|
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 }}
|
$SETARCH ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||||
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
|
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
|
||||||
- run: $SETARCH make incs
|
- run: $SETARCH make incs
|
||||||
|
- run: $SETARCH make prepare-gems
|
||||||
|
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||||
- run: $SETARCH make
|
- run: $SETARCH make
|
||||||
- run: $SETARCH make leaked-globals
|
- run: $SETARCH make leaked-globals
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
if: ${{ matrix.test_task == 'check' }}
|
||||||
- run: $SETARCH make prepare-gems
|
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
|
||||||
- name: Create dummy files in build dir
|
- name: Create dummy files in build dir
|
||||||
run: |
|
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)")}'
|
$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
|
- name: Run configure
|
||||||
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
|
||||||
- run: make incs
|
- run: make incs
|
||||||
|
- run: make prepare-gems
|
||||||
|
if: ${{ matrix.test_task == 'test-bundled-gems' }}
|
||||||
- run: make -j
|
- run: make -j
|
||||||
- run: make leaked-globals
|
- run: make leaked-globals
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
if: ${{ matrix.test_task == 'check' }}
|
||||||
- run: make prepare-gems
|
|
||||||
if: ${{ matrix.test_task == 'check' }}
|
|
||||||
- name: Create dummy files in build dir
|
- name: Create dummy files in build dir
|
||||||
run: |
|
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)")}'
|
./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)")}'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче