-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from JetBrains-Research/master-dev
Prepare 0.7.0 release
- Loading branch information
Showing
210 changed files
with
7,722 additions
and
9,209 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build with lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
container: voudy/astminer | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
build: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
container: voudy/astminer | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Build astminer | ||
run: ./gradlew build | ||
|
||
- name: Upload Test Report | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: test-report | ||
path: build/astminer/reports/tests/**/* | ||
|
||
- name: Upload Detekt Report | ||
uses: github/codeql-action/upload-sarif@v1 | ||
if: ${{ always() }} | ||
with: | ||
sarif_file: build/astminer/reports/detekt/detekt.sarif | ||
|
||
run-on-configs: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: voudy/astminer | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare shadowJar | ||
run: ./gradlew shadowJar | ||
|
||
- name: Run antlr_java_js_ast.yaml | ||
run: java -jar build/shadow/astminer.jar configs/antlr_java_js_ast.yaml | ||
|
||
- name: Run antlr_python_paths.yaml | ||
run: java -jar build/shadow/astminer.jar configs/antlr_python_paths.yaml | ||
|
||
- name: Run gumtree_java_ast.yaml | ||
run: java -jar build/shadow/astminer.jar configs/gumtree_java_ast.yaml | ||
|
||
- name: Run gumtree_java_function_names_paths.yaml | ||
run: java -jar build/shadow/astminer.jar configs/gumtree_java_function_names_paths.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
*.iml | ||
.idea/ | ||
.gradle/ | ||
examples/out/ | ||
.DS_Store | ||
|
||
src/main/generated/ | ||
build/ | ||
|
||
examples_output/ | ||
output/ | ||
*.csv | ||
log.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
job("Release") { | ||
startOn { | ||
gitPush { | ||
branchFilter { | ||
+"refs/tags/*" | ||
} | ||
} | ||
} | ||
|
||
container(image="voudy/astminer") { | ||
env["PUBLISH_USER"] = Secrets("publish_user") | ||
env["PUBLISH_PASSWORD"] = Secrets("publish_password") | ||
|
||
shellScript { | ||
content = """ | ||
./gradlew test publish | ||
""" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:20.04 | ||
|
||
LABEL desc="Docker container to run ASTMiner with all preinstalled requirements" | ||
|
||
# Instal OpenJDK11 | ||
RUN apt-get update && apt-get install -y openjdk-11-jdk | ||
|
||
# Install G++ (required for Fuzzy parser) | ||
RUN apt-get update && apt-get install -y g++ | ||
|
||
# Install PythonParser for GumTree | ||
ARG PYTHONPARSER_REPO=https://raw.githubusercontent.com/JetBrains-Research/pythonparser/master | ||
RUN apt-get update && \ | ||
apt-get install -y python3.8 python3-pip git wget && \ | ||
mkdir pythonparser && \ | ||
cd pythonparser && \ | ||
wget $PYTHONPARSER_REPO/requirements.txt && \ | ||
wget $PYTHONPARSER_REPO/src/main/python/pythonparser/pythonparser_3.py -O pythonparser && \ | ||
pip3 install -r requirements.txt && \ | ||
chmod +x pythonparser | ||
ENV PATH="/pythonparser:${PATH}" | ||
|
||
# Copy astminer shadow jar | ||
WORKDIR astminer | ||
COPY ./build/shadow/astminer.jar . | ||
|
||
ENTRYPOINT ["java", "-jar", "astminer.jar"] |
Oops, something went wrong.