Skip to content

Commit a3bdcbb

Browse files
committed
Commit neo4j-driver-deno to the repository
The `deno` driver is generated using a custom script made for this repository. This script doesn't have any tests linked to it. So the only way this changes are tested is by running the `deno driver` test suite. For guarantee the behaviour of this driver, we should version commit the generated driver to the repository. This changes introduce the first commited version of the driver. Adding the verification if the commited deno driver is in sync with the lite driver is also part of the this scope.
1 parent 1418f42 commit a3bdcbb

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

packages/neo4j-driver-deno/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
lib/
21
.vscode/

testkit/build.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
Executed in Javascript driver container.
33
Responsible for building driver and test backend.
44
"""
5-
from common import is_deno, run, run_in_driver_repo, DRIVER_REPO
5+
from common import is_deno, is_team_city, run, run_in_driver_repo, DRIVER_REPO
66
import os
77

88

99
def copy_files_to_workdir():
10-
run(["mkdir", DRIVER_REPO])
11-
run(["cp", "-fr", ".", DRIVER_REPO])
10+
run(["cp", "-fr", "./", DRIVER_REPO])
1211
run(["chown", "-Rh", "driver:driver", DRIVER_REPO])
1312

1413

@@ -20,8 +19,13 @@ def init_monorepo():
2019
def clean_and_build():
2120
run_in_driver_repo(["npm", "run", "clean"], env=os.environ)
2221
run_in_driver_repo(["npm", "run", "build"], env=os.environ)
22+
run_in_driver_repo(["rm", "-rf", "packages/neo4j-driver-deno/lib/"])
2323
run_in_driver_repo(["npm", "run", "build::deno"], env=os.environ)
2424

25+
if is_deno() and is_team_city():
26+
run_in_driver_repo(["git", "diff", "--exit-code",
27+
"--", "packages/neo4j-driver-deno/lib/"])
28+
2529

2630
if __name__ == "__main__":
2731
copy_files_to_workdir()

testkit/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ def is_browser():
4646

4747
def is_deno():
4848
return is_enabled(os.environ.get("TEST_DRIVER_DENO", "false"))
49+
50+
51+
def is_team_city():
52+
return is_enabled(os.environ.get("TEST_IN_TEAMCITY", "false"))

0 commit comments

Comments
 (0)