Skip to content

Commit

Permalink
Enable codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellansun committed Dec 15, 2022
1 parent 9b0d5d7 commit de18877
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
- name: Install maven
run: wget https://archive.apache.org/dist/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip && unzip -qq apache-maven-3.8.6-bin.zip
- name: Set environment variables
run: export M2_HOME=$PWD/apache-maven-3.8.6 && export PATH=$M2_HOME/bin:$PATH && echo "MAVEN_OPTS='-Xmx1g -DENABLE_JACOCO=false'" > ~/.mavenrc
run: export M2_HOME=$PWD/apache-maven-3.8.6 && export PATH=$M2_HOME/bin:$PATH && echo "MAVEN_OPTS='-Xmx1g -DENABLE_JACOCO=true'" > ~/.mavenrc
- name: Test with Maven
run: mvn test -Dantlr.testinprocess=true -DJDK_SOURCE_ROOT=../runtime/Java/src -Dperformance.package=
timeout-minutes: 60
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Java 8+](https://img.shields.io/badge/java-8+-4c7e9f.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/tunnelvisionlabs/antlr4/master/LICENSE.txt)
[![GithubActions](https://github.com/daniellansun/antlr4/actions/workflows/build-test.yml/badge.svg?branch=opt)](https://github.com/daniellansun/antlr4/actions?query=branch%3Aopt++)
[![codecov](https://codecov.io/gh/daniellansun/antlr4/branch/opt/graph/badge.svg)](https://codecov.io/gh/daniellansun/antlr4)

**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
6 changes: 4 additions & 2 deletions .codecov.yml → codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
coverage:
status:
project:
default: false
default:
informational: true
patch:
default: false
default:
informational: true

comment:
layout: "diff, flags, files, footer"

0 comments on commit de18877

Please sign in to comment.