forked from jasder/antlr
fix appveyor build for es6
This commit is contained in:
parent
d2ba4398e1
commit
21cb5df94f
|
@ -16,7 +16,13 @@ build_script:
|
|||
after_build:
|
||||
- msbuild /target:pack /property:Configuration=Release /verbosity:detailed runtime/CSharp/runtime/CSharp/Antlr4.dotnet.sln
|
||||
test_script:
|
||||
- mvn install -Dantlr-php-php="C:\tools\php\php.exe" -Dantlr-dart-dart="C:\tools\dart-sdk\bin\dart.exe" -Dantlr-dart-pub="C:\tools\dart-sdk\bin\pub.bat" -Dantlr-dart-dart2native="C:\tools\dart-sdk\bin\dart2native.bat" -Dantlr-python2-python="C:\Python27\python.exe" -Dantlr-python3-python="C:\Python35\python.exe" --batch-mode
|
||||
- mvn install -Dtest=csharp.* --batch-mode
|
||||
- mvn install -Dtest=php.* -Dantlr-php-php="C:\tools\php\php.exe" --batch-mode
|
||||
- mvn install -Dtest=dart.* -Dantlr-dart-dart="C:\tools\dart-sdk\bin\dart.exe" -Dantlr-dart-pub="C:\tools\dart-sdk\bin\pub.bat" -Dantlr-dart-dart2native="C:\tools\dart-sdk\bin\dart2native.bat" --batch-mode
|
||||
- mvn install -Dtest=python2.* -Dantlr-python2-python="C:\Python27\python.exe" --batch-mode
|
||||
- mvn install -Dtest=python3.* -Dantlr-python3-python="C:\Python35\python.exe" --batch-mode
|
||||
- mvn install -Dtest=go.* --batch-mode
|
||||
- mvn install -Dtest=java.* --batch-mode
|
||||
artifacts:
|
||||
- path: 'runtime\**\*.nupkg'
|
||||
name: NuGet
|
|
@ -98,7 +98,7 @@ public abstract class BaseRuntimeTest {
|
|||
// "The default JUnit runner treats tests with failing assumptions as ignored"
|
||||
boolean ignored = descriptor.ignore(descriptor.getTarget());
|
||||
if(ignored)
|
||||
System.out.printf("Ignore " + descriptor);
|
||||
System.out.println("Ignore " + descriptor);
|
||||
assumeFalse(ignored);
|
||||
delegate.testSetUp();
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public abstract class BaseRuntimeTest {
|
|||
public void testOne() throws Exception {
|
||||
// System.out.println(delegate.getTmpDir());
|
||||
if ( descriptor.ignore(descriptor.getTarget()) ) {
|
||||
System.out.printf("Ignore " + descriptor);
|
||||
System.out.println("Ignore " + descriptor);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -165,10 +165,7 @@ public abstract class BaseRuntimeTestDescriptor implements RuntimeTestDescriptor
|
|||
|
||||
@Override
|
||||
public boolean ignore(String targetName) {
|
||||
if(isAppVeyorCI())
|
||||
return !targetName.matches("CSharp");
|
||||
else
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
protected boolean isAppVeyorCI() {
|
||||
|
|
|
@ -112,10 +112,7 @@ public class ParseTreesDescriptors {
|
|||
|
||||
@Override
|
||||
public boolean ignore(String targetName) {
|
||||
if(isAppVeyorCI())
|
||||
return !targetName.matches("CSharp");
|
||||
else
|
||||
return !targetName.matches("Java|Python2|Python3|Node|Swift|CSharp|Dart");
|
||||
return !targetName.matches("Java|Python2|Python3|Node|Swift|CSharp|Dart");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue