mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
NO_PARALLEL=1 will disable (most) parallel testing
This is to make up for very slow or low resource environments, like the FreeBSD CI environment currently.
This commit is contained in:
parent
775091134d
commit
8cba8c3c68
1 changed files with 12 additions and 8 deletions
|
@ -52,15 +52,19 @@ common_all() ->
|
||||||
].
|
].
|
||||||
|
|
||||||
common_groups(Tests) ->
|
common_groups(Tests) ->
|
||||||
|
Opts = case os:getenv("NO_PARALLEL") of
|
||||||
|
false -> [parallel];
|
||||||
|
_ -> []
|
||||||
|
end,
|
||||||
[
|
[
|
||||||
{http, [parallel], Tests},
|
{http, Opts, Tests},
|
||||||
{https, [parallel], Tests},
|
{https, Opts, Tests},
|
||||||
{h2, [parallel], Tests},
|
{h2, Opts, Tests},
|
||||||
{h2c, [parallel], Tests},
|
{h2c, Opts, Tests},
|
||||||
{http_compress, [parallel], Tests},
|
{http_compress, Opts, Tests},
|
||||||
{https_compress, [parallel], Tests},
|
{https_compress, Opts, Tests},
|
||||||
{h2_compress, [parallel], Tests},
|
{h2_compress, Opts, Tests},
|
||||||
{h2c_compress, [parallel], Tests}
|
{h2c_compress, Opts, Tests}
|
||||||
].
|
].
|
||||||
|
|
||||||
init_common_groups(Name = http, Config, Mod) ->
|
init_common_groups(Name = http, Config, Mod) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue