mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Add SIMAPP47_ENABLED/SLOW_SIMAPP47_ENABLED and simapp47 tests
This commit is contained in:
parent
ef54946899
commit
4348cee45f
@ -28,7 +28,7 @@ workflows:
|
|||||||
- build
|
- build
|
||||||
matrix:
|
matrix:
|
||||||
parameters:
|
parameters:
|
||||||
simapp: ["simapp44", "simapp46"]
|
simapp: ["simapp44", "simapp46", "simapp47"]
|
||||||
- test-node:
|
- test-node:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
@ -159,6 +159,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
|
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
|
||||||
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
|
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
|
||||||
|
[ "<< parameters.simapp >>" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
|
||||||
yarn test --stream
|
yarn test --stream
|
||||||
- run:
|
- run:
|
||||||
name: Run CLI selftest
|
name: Run CLI selftest
|
||||||
@ -178,6 +179,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
|
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
|
||||||
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
|
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
|
||||||
|
[ "<< parameters.simapp >>" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
|
||||||
./run_examples.sh
|
./run_examples.sh
|
||||||
- run:
|
- run:
|
||||||
name: Stop chains
|
name: Stop chains
|
||||||
|
@ -7,8 +7,8 @@ import { Faucet } from "./faucet";
|
|||||||
import { TokenConfiguration } from "./tokenmanager";
|
import { TokenConfiguration } from "./tokenmanager";
|
||||||
|
|
||||||
function pendingWithoutSimapp(): void {
|
function pendingWithoutSimapp(): void {
|
||||||
if (!process.env.SIMAPP44_ENABLED && !process.env.SIMAPP46_ENABLED) {
|
if (!process.env.SIMAPP44_ENABLED && !process.env.SIMAPP46_ENABLED && !process.env.SIMAPP47_ENABLED) {
|
||||||
return pending("Set SIMAPP{44,46}_ENABLED to enabled Stargate node-based tests");
|
return pending("Set SIMAPP{44,46,47}_ENABLED to enabled Stargate node-based tests");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,12 +19,12 @@ export function pendingWithoutLedger(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function simappEnabled(): boolean {
|
export function simappEnabled(): boolean {
|
||||||
return !!process.env.SIMAPP44_ENABLED || !!process.env.SIMAPP46_ENABLED;
|
return !!process.env.SIMAPP44_ENABLED || !!process.env.SIMAPP46_ENABLED || !!process.env.SIMAPP47_ENABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function pendingWithoutSimapp(): void {
|
export function pendingWithoutSimapp(): void {
|
||||||
if (!simappEnabled()) {
|
if (!simappEnabled()) {
|
||||||
return pending("Set SIMAPP{44,46}_ENABLED to enable Simapp-based tests");
|
return pending("Set SIMAPP{44,46,47}_ENABLED to enable Simapp-based tests");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,8 +23,12 @@ export function simapp46Enabled(): boolean {
|
|||||||
return !!process.env.SIMAPP46_ENABLED;
|
return !!process.env.SIMAPP46_ENABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function simapp47Enabled(): boolean {
|
||||||
|
return !!process.env.SIMAPP47_ENABLED;
|
||||||
|
}
|
||||||
|
|
||||||
export function simappEnabled(): boolean {
|
export function simappEnabled(): boolean {
|
||||||
return simapp44Enabled() || simapp46Enabled();
|
return simapp44Enabled() || simapp46Enabled() || simapp47Enabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function pendingWithoutSimapp46(): void {
|
export function pendingWithoutSimapp46(): void {
|
||||||
@ -35,17 +39,21 @@ export function pendingWithoutSimapp46(): void {
|
|||||||
|
|
||||||
export function pendingWithoutSimapp(): void {
|
export function pendingWithoutSimapp(): void {
|
||||||
if (!simappEnabled()) {
|
if (!simappEnabled()) {
|
||||||
return pending("Set SIMAPP{44,46}_ENABLED to enable Simapp based tests");
|
return pending("Set SIMAPP{44,46,47}_ENABLED to enable Simapp based tests");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function slowSimappEnabled(): boolean {
|
export function slowSimappEnabled(): boolean {
|
||||||
return !!process.env.SLOW_SIMAPP44_ENABLED || !!process.env.SLOW_SIMAPP46_ENABLED;
|
return (
|
||||||
|
!!process.env.SLOW_SIMAPP44_ENABLED ||
|
||||||
|
!!process.env.SLOW_SIMAPP46_ENABLED ||
|
||||||
|
!!process.env.SLOW_SIMAPP47_ENABLED
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function pendingWithoutSlowSimapp(): void {
|
export function pendingWithoutSlowSimapp(): void {
|
||||||
if (!slowSimappEnabled()) {
|
if (!slowSimappEnabled()) {
|
||||||
return pending("Set SLOW_SIMAPP{44,46}_ENABLED to enable slow Simapp based tests");
|
return pending("Set SLOW_SIMAPP{44,46,47}_ENABLED to enable slow Simapp based tests");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@ module.exports = [
|
|||||||
SLOW_SIMAPP44_ENABLED: "",
|
SLOW_SIMAPP44_ENABLED: "",
|
||||||
SIMAPP46_ENABLED: "",
|
SIMAPP46_ENABLED: "",
|
||||||
SLOW_SIMAPP46_ENABLED: "",
|
SLOW_SIMAPP46_ENABLED: "",
|
||||||
|
SIMAPP47_ENABLED: "",
|
||||||
|
SLOW_SIMAPP47_ENABLED: "",
|
||||||
}),
|
}),
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
Buffer: ["buffer", "Buffer"],
|
Buffer: ["buffer", "Buffer"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user