Disable Node tests in AppVeyor for now

This commit is contained in:
Eric Vergnaud 2020-10-10 14:38:32 +08:00
parent 76355cebbf
commit 654b92779c
3 changed files with 10 additions and 6 deletions

View File

@ -4,12 +4,7 @@ cache:
- '%USERPROFILE%\.nuget\packages -> **\project.json'
image: Visual Studio 2017
build: off
environment:
nodejs_version: "14"
install:
- ps: Install-Product node $env:nodejs_version
- node --version
- npm --version
- git submodule update --init --recursive
- cinst -y php --params "/InstallDir:C:\tools\php"
- cinst -y composer

View File

@ -52,6 +52,7 @@ public abstract class BaseRuntimeTest {
"Python2", "Python3",
"PHP",
"Node",
"Swift",
"Dart"
};

View File

@ -165,9 +165,17 @@ public abstract class BaseRuntimeTestDescriptor implements RuntimeTestDescriptor
@Override
public boolean ignore(String targetName) {
return false;
if("Node".equals(targetName) || "Swift".equals(targetName))
return !isAppVeyorCI();
else
return false;
}
protected boolean isAppVeyorCI() {
return "true".equals(System.getenv("APPVEYOR"));
}
@Override
public String toString() {
return getTarget()+":"+getTestName();