Skip to content

Commit 09e06a3

Browse files
authored
testkit: Add support for building the Deno driver (neo4j#892)
1 parent 2b76fe2 commit 09e06a3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"clean": "lerna clean -y && lerna run clean",
99
"build": "lerna bootstrap --ci",
10+
"build::deno": "(cd ./packages/neo4j-driver-deno && deno run --allow-read --allow-write --allow-net ./generate.ts --version=5.0.0-dev)",
1011
"docs": "lerna run docs --stream --concurrency 1",
1112
"test::unit": "lerna run test::unit --stream",
1213
"test::integration": "lerna run test::integration --stream",

testkit/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN apt-get update && \
2323
nodejs \
2424
firefox \
2525
nodejs \
26+
unzip \
2627
&& rm -rf /var/lib/apt/lists/*
2728

2829
RUN /bin/bash -c "hash -d npm"
@@ -45,6 +46,10 @@ COPY CustomCAs/* /usr/local/share/custom-ca-certificates/
4546

4647
RUN update-ca-certificates --verbose
4748

49+
# Add Deno
50+
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
51+
RUN mv /root/.deno/bin/deno /usr/bin/
52+
4853
# Creating an user for building the driver and running the tests
4954
RUN useradd -m driver && echo "driver:driver" | chpasswd && adduser driver sudo
5055
VOLUME /driver
@@ -57,5 +62,8 @@ CMD /bin/bash
5762
RUN mkdir /home/driver/.npm_global
5863
RUN npm config set prefix /home/driver/.npm_global
5964

65+
66+
## Versions
6067
RUN node --version
6168
RUN npm --version
69+
RUN deno --version

testkit/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def init_monorepo():
2020
def clean_and_build():
2121
run_in_driver_repo(["npm", "run", "clean"], env=os.environ)
2222
run_in_driver_repo(["npm", "run", "build"], env=os.environ)
23+
run_in_driver_repo(["npm", "run", "build::deno"], env=os.environ)
2324

2425

2526
if __name__ == "__main__":

0 commit comments

Comments
 (0)