Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'corretto'
cache: gradle
- name: Build with Makefile
run: make build && make test && make untested-zip
run: |
make info
make build
make test
make untested-zip
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: geequel-shell
path: out/geequel-shell.zip
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.log-name || 'logs' }}
path: /home/runner/work/geequel-shell/geequel-shell/geequel-shell/build/reports/tests/test/
name: logs
path: geequel-shell/build/reports/tests/test/
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.DEFAULT: help
.PHONY: help build clean zip run untested-zip test integration-test tyrekicking-test mutation-test install info

gitdescribe := $(shell git describe --tags --match [0-9]*)
lasttag := $(shell git describe --tags --match [0-9]* --abbrev=0)
gitdescribe := $(shell git describe --tags --match '[0-9]*' 2>/dev/null || echo 0.0.1-alpha)
gitafter := $(shell git describe --tags --match '[0-9]*' --all 2>/dev/null | perl -pe 'exit unless /-\d+-/;s<^tags/><>;s<^(?:\d+\.)+\d+-><>;s<-.*><>; s/^/modified-/ if /./')
lasttag := $(shell git describe --tags --match '[0-9]*' --abbrev=0 2>/dev/null || echo 0.0.1-alpha)

version ?= $(lasttag)
versionlabel = $(shell echo ${version} | awk '{ sub("^[0-9]+.[0-9]+.[0-9]+-?", "", $$1); print }')
versionlabel = $(shell (echo ${version} | perl -pe 's/^\d+\.\d+\.\d+-?//'; echo ${gitafter}) | grep . | head -1)
versionnumber = $(shell echo ${version} | awk '{ sub("-.*$$", "", $$1); print }')

pkgversion ?= 1
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ subprojects {
}

ext {
// Only match tags starting with a number to avoid ongdb-xxx changelog tags
// Only match tags starting with a number to avoid ongdb-xxx / geequel-xxx changelog tags
gitVersion = 'git describe --tags --match [0-9]*'.execute([], project.rootDir).text.trim()

if (project.hasProperty('buildVersion')) {
Expand All @@ -71,7 +71,7 @@ ext {
argparse4jVersion = '0.7.0'
junitVersion = '4.12'
evaluatorVersion = '3.5.14'
neo4jJavaDriverVersion = '1.7.5'
neo4jJavaDriverVersion = '1.7.6'
findbugsVersion = '3.0.0'
jansiVersion = '1.13'
jlineVersion = '2.14.6'
Expand Down
2 changes: 1 addition & 1 deletion geequel-shell/src/dist/geequel-shell.bat
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
rem Setup the command line
rem Set up the command line

SETLOCAL EnableDelayedExpansion
SET GEEQUEL_SHELL_JAR=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.Map;

/**
* An object which keeps named parameters and allows them them to be set/unset.
* An object which keeps named parameters and allows them to be set/unset.
*/
public interface ParameterMap {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Help implements Command {
public static final String COMMAND_NAME = ":help";
private final Logger logger;
private final CommandHelper commandHelper;
public static String CYPHER_REFCARD_LINK = "https://neo4j.com/docs/developer-manual/current/cypher/";
public static String CYPHER_REFCARD_LINK = "https://docs.graphfoundation.org/docs/category/query-language-docs";

public Help(@Nonnull final Logger shell, @Nonnull final CommandHelper commandHelper) {
this.logger = shell;
Expand Down
2 changes: 1 addition & 1 deletion geequel-shell/src/test/java/org/neo4j/shell/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public void printsVersionAndExits() {
ArgumentCaptor<String> argument = ArgumentCaptor.forClass(String.class);

verify(printStream).println(argument.capture());
assertTrue(argument.getValue().matches("Geequel-Shell ( \\d+\\.\\d+\\.\\d+.*)?"));
assertTrue(argument.getValue().matches("Geequel-Shell (\\d+\\.\\d+\\.\\d+.*)?"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public void quoteInComment() throws Exception {
}

@Test
public void quoteInBlockomment() throws Exception {
public void quoteInBlockComment() throws Exception {
// when
parser.parseMoreText("/* `;\n;*/\n;");

Expand Down
2 changes: 1 addition & 1 deletion gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.