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
16 changes: 15 additions & 1 deletion .github/workflows/ci-runnerpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ jobs:
import static org.postgresql.pljava.packaging.Node.stateMachine;
import static org.postgresql.pljava.packaging.Node.isVoidResultSet;
import static org.postgresql.pljava.packaging.Node.s_isWindows;
import static
org.postgresql.pljava.packaging.Node.NOTHING_OR_PGJDBC_ZERO_COUNT;
/*
* Imports that will be needed to serve a jar file over http
* when the time comes for testing that.
Expand Down Expand Up @@ -339,7 +341,9 @@ jobs:
// state 1: consume any diagnostics, or to state 2 with same item
(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,

// state 2: must be end of input
NOTHING_OR_PGJDBC_ZERO_COUNT, // state 2

// state 3: must be end of input
(o,p,q) -> null == o
);
}
Expand Down Expand Up @@ -566,6 +570,9 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand Down Expand Up @@ -598,6 +605,8 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand Down Expand Up @@ -633,6 +642,7 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand All @@ -647,6 +657,7 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand All @@ -672,6 +683,7 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand All @@ -687,6 +699,8 @@ jobs:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand Down
16 changes: 15 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ test_script:
import static org.postgresql.pljava.packaging.Node.q;
import static org.postgresql.pljava.packaging.Node.stateMachine;
import static org.postgresql.pljava.packaging.Node.isVoidResultSet;
import static
org.postgresql.pljava.packaging.Node.NOTHING_OR_PGJDBC_ZERO_COUNT;
/*
* Imports that will be needed to serve a jar file over http
* when the time comes for testing that.
Expand Down Expand Up @@ -221,7 +223,9 @@ test_script:
// state 1: consume any diagnostics, or show same item to state 2
(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,

// state 2: must be end of input
NOTHING_OR_PGJDBC_ZERO_COUNT, // state 2

// state 3: must be end of input
(o,p,q) -> null == o
);
}
Expand Down Expand Up @@ -448,6 +452,9 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand Down Expand Up @@ -480,6 +487,8 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand Down Expand Up @@ -515,6 +524,7 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand All @@ -529,6 +539,7 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand All @@ -554,6 +565,7 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);

Expand All @@ -569,6 +581,8 @@ test_script:
.peek(Node::peek),

(o,p,q) -> isDiagnostic(o, Set.of("error")) ? 1 : -2,
NOTHING_OR_PGJDBC_ZERO_COUNT,
NOTHING_OR_PGJDBC_ZERO_COUNT,
(o,p,q) -> null == o
);
}
Expand Down
17 changes: 17 additions & 0 deletions pljava-packaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@
</properties>
</profile>

<!--
- Activate this profile just as a convenient way to make Maven
- download the pgjdbc driver. It isn't needed in any way for
- building, but then you will have it in your local Maven repository
- if you want to add it to your classpath for some tests.
-->
<profile>
<id>pgjdbc</id>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>[42.6.0,)</version>
</dependency>
</dependencies>
</profile>

<!--
- Activate this profile just as a convenient way to make Maven
- download the pgjdbc-ng driver. It isn't needed in any way for
Expand Down
Loading