Skip to content

Commit

Permalink
Merge pull request #176 from JetBrains-Research/master-dev
Browse files Browse the repository at this point in the history
Prepare 0.7.0 release
  • Loading branch information
SpirinEgor authored Aug 10, 2021
2 parents 4789018 + 2c4179d commit 042283e
Show file tree
Hide file tree
Showing 210 changed files with 7,722 additions and 9,209 deletions.
66 changes: 0 additions & 66 deletions .circleci/config.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/build.yml
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
12 changes: 10 additions & 2 deletions .gitignore
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

20 changes: 20 additions & 0 deletions .space.kts
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
"""
}
}
}
27 changes: 27 additions & 0 deletions Dockerfile
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"]
Loading

0 comments on commit 042283e

Please sign in to comment.