Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add script #3048

Merged
merged 8 commits into from Jan 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/scripts/mac-action-runner-readme.txt
Expand Up @@ -23,4 +23,8 @@ JDK (we need a specific JDK):
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane

C++:
- brew install cmake
- brew install cmake

C#:
- .github/scripts/install-dotnet-on-osx.sh
(you need to repeat this step for each user account)
23 changes: 23 additions & 0 deletions .github/scripts/run-tests-dotnet.sh
@@ -0,0 +1,23 @@
#!/bin/bash

set -euo pipefail

export PATH=$PATH:~/.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

# run tests
cd runtime-testsuite/

if [ $GROUP == "LEXER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=csharp.* test
elif [ $GROUP == "PARSER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dtest=csharp.* test
elif [ $GROUP == "RECURSION" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dtest=csharp.* test
else
mvn -q -Dtest=csharp.* test
fi
1 change: 1 addition & 0 deletions .github/scripts/run-tests-java.sh
Expand Up @@ -11,6 +11,7 @@ fi

# run java tests
cd runtime-testsuite/

if [ $GROUP == "LEXER" ]; then
mvn -X -e -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest="swift.*" test
elif [ $GROUP == "PARSER" ]; then
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/java-all.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/macosx.yml
Expand Up @@ -12,10 +12,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# GROUP: [LEXER, PARSER, RECURSION]
# TARGET: [swift, cpp, dotnet]
GROUP: [LEXER]
TARGET: [dotnet]
GROUP: [LEXER, PARSER, RECURSION]
TARGET: [swift, cpp, dotnet]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# ANTLR v4

[![Build Travis-CI Status](https://travis-ci.org/antlr/antlr4.svg?branch=master)](https://travis-ci.org/antlr/antlr4) [![Build AppVeyor Status](https://ci.appveyor.com/api/projects/status/5acpbx1pg7bhgh8v/branch/master?svg=true)](https://ci.appveyor.com/project/parrt/antlr4) [![Java 7+](https://img.shields.io/badge/java-7+-4c7e9f.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt)
[![Github Build Status (MacOSX)](https://github.com/antlr/antlr4/workflows/MacOSX/badge.svg)](https://github.com/antlr/antlr4/actions) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/5acpbx1pg7bhgh8v/branch/master?svg=true)](https://ci.appveyor.com/project/parrt/antlr4) [![Java 7+](https://img.shields.io/badge/java-7+-4c7e9f.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt)

**ANTLR** (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build parse trees and also generates a listener interface (or visitor) that makes it easy to respond to the recognition of phrases of interest.

Expand Down
Expand Up @@ -114,6 +114,7 @@ public void testTearDown() throws Exception {

@Override
public void beforeTest(RuntimeTestDescriptor descriptor) {
System.out.println(descriptor.getTestName());
}

@Override
Expand Down
Expand Up @@ -142,6 +142,7 @@ public void testTearDown() throws Exception {

@Override
public void beforeTest(RuntimeTestDescriptor descriptor) {
System.out.println(descriptor.getTestName());
}

@Override
Expand Down