version: 2.1
jobs:
test_tool_and_runtime_java:
docker:
- image: cimg/openjdk:8.0
steps:
- checkout
- run:
name: build tool
command: mvn -B -V -DskipTests=true -Dmaven.javadoc.skip=true install
name: test runtime
command: |
cd runtime-testsuite
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=java.* test
cd ..
name: test tool
cd tool-testsuite
mvn -q -Dparallel=methods -DthreadCount=4 test
test_runtime:
parameters:
test-group:
description: The section
type: string
default: ALL
target:
description: The target
default: java
environment:
TARGET: << parameters.target >>
GROUP: << parameters.test-group >>
name: Install << parameters.target >> pre-requisites
f=".circleci/scripts/install-linux-<< parameters.target >>.sh"; ! [ -x "$f" ] || "$f"
name: Build ANTLR4 tool
name: Test << parameters.target >> runtime
.circleci/scripts/run-tests-<< parameters.target >>.sh
workflows:
build:
- test_tool_and_runtime_java
- test_runtime:
matrix:
target: [ dart, go, python2, python3, javascript, php ]
# target: [ cpp, dotnet, swift ]
target: [ cpp, dotnet ]
test-group: [ LEXER, PARSER, RECURSION ]