diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8ac425d524d..d2b1f74aa11 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -14,175 +14,175 @@ jobs: distribution: 'temurin' - name: Build with Maven run: mvn clean install -DskipTests -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - java-jdk11: - name: mvn clean install - jdk11 - timeout-minutes: 45 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: mvn clean install -pl -:gremlin-javascript -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - java-jdk8: - name: mvn clean install - jdk8 - timeout-minutes: 45 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'temurin' - - name: Build with Maven - run: mvn clean install -pl -:gremlin-javascript -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - gremlin-server-default: - name: gremlin-server default - timeout-minutes: 45 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl :gremlin-server -DskipTests -DskipIntegrationTests=false -DincludeNeo4j - gremlin-server-unified: - name: gremlin-server unified - timeout-minutes: 45 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl :gremlin-server -DskipTests -DskipIntegrationTests=false -DincludeNeo4j -DtestUnified=true - spark-core: - name: spark core - timeout-minutes: 45 - needs: smoke - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven Windows - if: runner.os == 'Windows' - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -DskipImageBuild -Dci - - name: Build with Maven Ubuntu - if: runner.os == 'Linux' - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false '-Dit.test=*IntegrateTest,!SparkGryoSerializerGraphComputerProcessIntegrateTest' - spark-gryo: - name: spark gryo - timeout-minutes: 45 - needs: smoke - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven Windows - if: runner.os == 'Windows' - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -DskipImageBuild -Dci - - name: Build with Maven Ubuntu - if: runner.os == 'Linux' - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false -Dit.test=SparkGryoSerializerGraphComputerProcessIntegrateTest - gremlin-console: - name: gremlin-console - timeout-minutes: 20 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl :gremlin-console -DskipTests -DskipIntegrationTests=false - javascript: - name: javascript - timeout-minutes: 15 - needs: smoke - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: | - mvn clean install -pl -:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests -q -DskipTests -Dci - mvn verify -pl :gremlin-javascript,:gremlint -DincludeNeo4j - python: - name: python - timeout-minutes: 20 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Set up Python 3.x - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: Setup Python requirements - run: | - sudo apt install gcc libkrb5-dev - python3 -m pip install --upgrade pip - pip install virtualenv - - name: Build with Maven - run: | - touch gremlin-python/.glv - mvn clean install -pl -:gremlin-javascript,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci - mvn verify -pl gremlin-python -DincludeNeo4j +# java-jdk11: +# name: mvn clean install - jdk11 +# timeout-minutes: 45 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: mvn clean install -pl -:gremlin-javascript -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn +# java-jdk8: +# name: mvn clean install - jdk8 +# timeout-minutes: 45 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'temurin' +# - name: Build with Maven +# run: mvn clean install -pl -:gremlin-javascript -Dci --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn +# gremlin-server-default: +# name: gremlin-server default +# timeout-minutes: 45 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl :gremlin-server -DskipTests -DskipIntegrationTests=false -DincludeNeo4j +# gremlin-server-unified: +# name: gremlin-server unified +# timeout-minutes: 45 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl :gremlin-server -DskipTests -DskipIntegrationTests=false -DincludeNeo4j -DtestUnified=true +# spark-core: +# name: spark core +# timeout-minutes: 45 +# needs: smoke +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [ubuntu-latest, windows-latest] +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven Windows +# if: runner.os == 'Windows' +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -DskipImageBuild -Dci +# - name: Build with Maven Ubuntu +# if: runner.os == 'Linux' +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false '-Dit.test=*IntegrateTest,!SparkGryoSerializerGraphComputerProcessIntegrateTest' +# spark-gryo: +# name: spark gryo +# timeout-minutes: 45 +# needs: smoke +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [ubuntu-latest, windows-latest] +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven Windows +# if: runner.os == 'Windows' +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -DskipImageBuild -Dci +# - name: Build with Maven Ubuntu +# if: runner.os == 'Linux' +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl :spark-gremlin -DskipTests -DskipIntegrationTests=false -Dit.test=SparkGryoSerializerGraphComputerProcessIntegrateTest +# gremlin-console: +# name: gremlin-console +# timeout-minutes: 20 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl :gremlin-console -DskipTests -DskipIntegrationTests=false +# javascript: +# name: javascript +# timeout-minutes: 15 +# needs: smoke +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [ubuntu-latest, windows-latest] +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: | +# mvn clean install -pl -:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests -q -DskipTests -Dci +# mvn verify -pl :gremlin-javascript,:gremlint -DincludeNeo4j +# python: +# name: python +# timeout-minutes: 20 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Set up Python 3.x +# uses: actions/setup-python@v4 +# with: +# python-version: '3.8' +# - name: Setup Python requirements +# run: | +# sudo apt install gcc libkrb5-dev +# python3 -m pip install --upgrade pip +# pip install virtualenv +# - name: Build with Maven +# run: | +# touch gremlin-python/.glv +# mvn clean install -pl -:gremlin-javascript,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests,-:gremlint -q -DskipTests -Dci +# mvn verify -pl gremlin-python -DincludeNeo4j dotnet: name: .NET timeout-minutes: 20 @@ -206,49 +206,53 @@ jobs: run: | touch gremlin-dotnet/src/.glv touch gremlin-dotnet/test/.glv - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-:gremlint -q -DskipTests -Dci + mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-:gremlint,-:gremlin-go -q -DskipTests -Dci mvn verify -pl :gremlin-dotnet,:gremlin-dotnet-tests -P gremlin-dotnet -DincludeNeo4j - neo4j-gremlin: - name: neo4j-gremlin - timeout-minutes: 20 - needs: smoke - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Maven - run: | - mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests -q -DskipTests -Dci - mvn verify -pl :neo4j-gremlin -DincludeNeo4j - go: - name: go - timeout-minutes: 20 - needs: smoke - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: '1.17' - - name: Generate Gremlin Server Base Image - working-directory: . - run: | - mvn clean install -pl gremlin-server -DskipTests -DskipIntegrationTests=true -Dci -am - - name: Build with Maven - working-directory: . - run: | - touch gremlin-go/.glv - mvn verify -pl :gremlin-go - name: Upload to Codecov uses: codecov/codecov-action@v3 with: - working-directory: ./gremlin-go - - name: Go-Vet - working-directory: ./gremlin-go - run: go vet ./... + working-directory: ./gremlin-dotnet/test +# neo4j-gremlin: +# name: neo4j-gremlin +# timeout-minutes: 20 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK11 +# uses: actions/setup-java@v3 +# with: +# java-version: '11' +# distribution: 'temurin' +# - name: Build with Maven +# run: | +# mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-gremlin-dotnet,-:gremlin-dotnet-source,-:gremlin-dotnet-tests -q -DskipTests -Dci +# mvn verify -pl :neo4j-gremlin -DincludeNeo4j +# go: +# name: go +# timeout-minutes: 20 +# needs: smoke +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v3 +# - name: Setup Go +# uses: actions/setup-go@v3 +# with: +# go-version: '1.17' +# - name: Generate Gremlin Server Base Image +# working-directory: . +# run: | +# mvn clean install -pl gremlin-server -DskipTests -DskipIntegrationTests=true -Dci -am +# - name: Build with Maven +# working-directory: . +# run: | +# touch gremlin-go/.glv +# mvn verify -pl :gremlin-go +# - name: Upload to Codecov +# uses: codecov/codecov-action@v3 +# with: +# working-directory: ./gremlin-go +# - name: Go-Vet +# working-directory: ./gremlin-go +# run: go vet ./... diff --git a/gremlin-dotnet/Gremlin.Net.sln b/gremlin-dotnet/Gremlin.Net.sln index 8816c761a7a..018ae20cbb1 100644 --- a/gremlin-dotnet/Gremlin.Net.sln +++ b/gremlin-dotnet/Gremlin.Net.sln @@ -19,7 +19,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gremlin.Net.Template", "src EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gremlin.Net.Template.IntegrationTest", "test\Gremlin.Net.Template.IntegrationTest\Gremlin.Net.Template.IntegrationTest.csproj", "{3BFC3559-E317-4327-AFB7-CFBB31E1C868}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gremlin.Net.Benchmarks", "test\Gremlin.Net.Benchmarks\Gremlin.Net.Benchmarks.csproj", "{7250A8B5-B962-49AB-B295-F75F8D4DBD78}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gremlin.Net.BenchmarkTests", "test\Gremlin.Net.BenchmarkTests\Gremlin.Net.BenchmarkTests.csproj", "{7250A8B5-B962-49AB-B295-F75F8D4DBD78}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/gremlin-dotnet/pom.xml b/gremlin-dotnet/pom.xml index 893958cca74..70ad8d4eda9 100644 --- a/gremlin-dotnet/pom.xml +++ b/gremlin-dotnet/pom.xml @@ -26,6 +26,11 @@ limitations under the License. gremlin-dotnet Apache TinkerPop :: Gremlin.Net pom + + + false + ${maven.test.skip} + src @@ -58,6 +63,9 @@ limitations under the License. org.eobjects.build dotnet-maven-plugin true + + ${skipTests} + - - false - - - org.codehaus.gmavenplus gmavenplus-plugin @@ -223,6 +201,35 @@ limitations under the License. + + exec-maven-plugin + org.codehaus.mojo + 1.2.1 + + + run-tests + integration-test + + exec + + + ${skipTests} + + false + + dotnet + ./.. + + test + ./Gremlin.Net.sln + /p:CollectCoverage=true + /p:CoverletOutputFormat=opencover + /p:Exclude="[*Tests?]*" + + + + + @@ -245,13 +252,23 @@ limitations under the License. - org.eobjects.build - dotnet-maven-plugin - - - true - - + exec-maven-plugin + org.codehaus.mojo + 1.2.1 + + + run-tests + integration-test + + exec + + + + true + + + + org.codehaus.gmavenplus