Skip to content

Update antlr4.version to v4.13.2 #1134

Update antlr4.version to v4.13.2

Update antlr4.version to v4.13.2 #1134

Workflow file for this run

name: Java CI
on: [push]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 14
uses: actions/setup-java@v3
with:
java-version: '14'
distribution: 'adopt'
cache: 'maven'
- uses: actions/setup-python@v4
with:
python-version: '3.8.10'
- name: Build with Maven
run: mvn clean verify -B -DskipITs -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: archive artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
transpiler/target/results
scalastyle-output.xml
- name: Rename jar
run: cp transpiler/target/transpiler-*-jar-with-dependencies.jar transpiler.jar
- name: archive jar
uses: actions/upload-artifact@v3
with:
name: package
path: transpiler.jar
polystatIntegration:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
needs: test
steps:
- uses: actions/checkout@v3
- name: set up JDK 14
uses: actions/setup-java@v3
with:
java-version: '14'
distribution: 'adopt'
cache: 'maven'
- uses: actions/setup-python@v4
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: package
- name: download polystat
run: wget https://repo.maven.apache.org/maven2/org/polystat/polystat/0.4.0/polystat-0.4.0-jar-with-dependencies.jar
- name: translate python
run: java -jar ./transpiler.jar ./transpiler/src/test/resources/org/polystat/py2eo/transpiler/integrationTests/test.py
- name: analysis
run: cp ./transpiler/src/test/resources/org/polystat/py2eo/transpiler/integrationTests/test.eo ./transpiler/src/test.eo && cp ./transpiler/src/test/resources/org/polystat/py2eo/transpiler/integrationTests/goto.eo ./transpiler/src/goto.eo && java -jar ./polystat-0.4.0-jar-with-dependencies.jar ./transpiler/src ./temp --sarif
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: polystatResults
path: /Users/runner/work/py2eo/py2eo/temp
- name: failure artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: py2eo output
path: ./transpiler/src/test.eo
runEO:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
needs: test
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '14'
distribution: 'adopt'
cache: 'maven'
- uses: actions/setup-python@v4
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
path: ./
- name: Build with Maven
run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp -a transpiler/target/results/* ./runEO && cp transpiler/src/main/eo/xmodules/*.eo ./runEO/xmodules/ && cp -a transpiler/src/main/eo/preface ./runEO && cd ./runEO && rm exceptions-finally-3.eo && mvn clean test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn && rm *.eo && cp ../transpiler/target/results/exceptions-finally-3.eo . && mvn clean test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: generatedJava
path: /Users/runner/work/py2eo/py2eo/python/python3/test/target/generated-sources/
- name: Build counter
run: mvn clean package -PEnabledTestsCounter -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Rename counter
run: cp transpiler/target/transpiler-*-jar-with-dependencies.jar counter.jar
- name: Run counter
run: java -jar counter.jar