[前][次][番号順一覧][スレッド一覧]

ruby-changes:60058

From: Takashi <ko1@a...>
Date: Thu, 13 Feb 2020 15:23:36 +0900 (JST)
Subject: [ruby-changes:60058] 4d04b32986 (ruby_2_7): Run tests in the consistent order

https://git.ruby-lang.org/ruby.git/commit/?id=4d04b32986

From 4d04b32986bb73bfd5d5e56bcd17cfa82c90885c Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 31 Dec 2019 10:24:00 -0800
Subject: Run tests in the consistent order

`make check` runs test -> test-all -> test-spec, and other CIs follow that too.

diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index 00fb5fd..ae3ce05 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -116,31 +116,31 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L116
           $env:TMPDIR = "$pwd/temp"
           make -C build test
 
-      - name: test-spec
+      - name: test-all
         if: success() || failure()
-        timeout-minutes: 10
+        timeout-minutes: 25
         run: |
           $env:TMPDIR = "$pwd/temp"
-          $env:PATH = "$pwd/install/bin;$env:PATH"
           # Actions uses UTF8, causes test failures, similar to normal OS setup
           $PSDefaultParameterValues['*:Encoding'] = 'utf8'
           [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
           [Console]::InputEncoding  = [System.Text.Encoding]::GetEncoding("IBM437")
-          ruby -v
-          cd src/spec/ruby
-          ruby ../mspec/bin/mspec -j
+          $jobs = [int]$env:NUMBER_OF_PROCESSORS
+          make -C build test-all TESTOPTS="-j $jobs --retry --job-status=normal --show-skip --timeout-scale=1.5"
 
-      - name: test-all
+      - name: test-spec
         if: success() || failure()
-        timeout-minutes: 25
+        timeout-minutes: 10
         run: |
           $env:TMPDIR = "$pwd/temp"
+          $env:PATH = "$pwd/install/bin;$env:PATH"
           # Actions uses UTF8, causes test failures, similar to normal OS setup
           $PSDefaultParameterValues['*:Encoding'] = 'utf8'
           [Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
           [Console]::InputEncoding  = [System.Text.Encoding]::GetEncoding("IBM437")
-          $jobs = [int]$env:NUMBER_OF_PROCESSORS
-          make -C build test-all TESTOPTS="-j $jobs --retry --job-status=normal --show-skip --timeout-scale=1.5"
+          ruby -v
+          cd src/spec/ruby
+          ruby ../mspec/bin/mspec -j
 
       - uses: k0kubun/action-slack@v...
         with:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]