antlr/.travis/run-tests-dotnet.sh

23 lines
872 B
Bash
Raw Normal View History

2017-01-25 08:24:36 +08:00
#!/bin/bash
set -euo pipefail
export PATH=$PATH:/Users/travis/.dotnet
# we need to build the runtime before test run, since we used "--no-dependencies"
# when we call dotnet cli for restore and build, in order to speed up
dotnet build -c Release -f netstandard2.0 ../runtime/CSharp/Antlr4.csproj
# call test
2017-06-28 22:18:19 +08:00
if [ $GROUP == "LEXER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dparallel=classes -DthreadCount=4 -Dtest=csharp.* test
2017-06-28 22:18:19 +08:00
elif [ $GROUP == "PARSER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dparallel=classes -DthreadCount=4 -Dtest=csharp.* test
2017-06-28 22:18:19 +08:00
elif [ $GROUP == "RECURSION" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dparallel=classes -DthreadCount=4 -Dtest=csharp.* test
2017-06-28 22:18:19 +08:00
else
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=csharp.* test
2017-06-28 22:18:19 +08:00
fi