Skip to content

Commit c134cff

Browse files
committed
ci(bulk-model-sync-gradle): use absolute paths in ci script
1 parent 1664abc commit c134cff

File tree

1 file changed

+4
-3
lines changed
  • bulk-model-sync-gradle-test

1 file changed

+4
-3
lines changed

bulk-model-sync-gradle-test/ci.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -e
44
set -x
55

6-
cd "$(dirname "$0")"
6+
TEST_DIR="$(dirname "$(readlink -f "$0")")"
7+
cd "${TEST_DIR}"
78

89
(
910
cd graph-lang-api
@@ -20,11 +21,11 @@ if [ "${CI}" != "true" ]; then
2021
}
2122
fi
2223

23-
cd ..
24+
cd "${TEST_DIR}/.."
2425
./gradlew :model-server:run --console=plain --args="-inmemory -port 28309" &
2526
MODEL_SERVER_PID=$!
2627

27-
cd "$(dirname "$0")"
28+
cd "${TEST_DIR}"
2829

2930
curl -X GET --retry 30 --retry-connrefused --retry-delay 1 http://localhost:28309/health
3031

0 commit comments

Comments
 (0)