Skip to content

Commit b105b15

Browse files
committed
Add seeding zones to develpoment script
1 parent be51beb commit b105b15

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/development.sh

+11
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ function start_dependencies {
123123
fi
124124

125125
start_docker_images $DOCKER_TESTDB_IMAGE $DOCKER_IMAGES $additional_images
126+
# Use port 3010 for tiamat and 3110 for tiamat-e2e
127+
./scripts/seed-municipalities-and-fare-zones.sh 3010 &
128+
if [ "$INCLUDE_E2E" = true ]; then
129+
./scripts/seed-municipalities-and-fare-zones.sh 3110 &
130+
fi
131+
wait
126132

127133
check_images
128134
}
@@ -223,6 +229,8 @@ function setup_environment {
223229

224230
if [ "$INCLUDE_E2E" = true ]; then
225231
seed_infra_links testdb-e2e
232+
# Use port 3110 for tiamat-e2e
233+
./scripts/seed-municipalities-and-fare-zones.sh 3110
226234
fi
227235

228236
if [[ $1 = "test" ]]; then
@@ -238,6 +246,9 @@ function setup_environment {
238246
docker exec -i testdb sed -i '1s;^;SET session_replication_role = replica\;\n;' dump.sql
239247
docker exec -i testdb sh -c 'psql postgresql://dbadmin:adminpassword@localhost:5432/jore4e2e < dump.sql'
240248

249+
# Use port 3010 for tiamat
250+
./scripts/seed-municipalities-and-fare-zones.sh 3010
251+
241252
cd ./test-db-manager
242253
yarn build
243254
yarn seed

0 commit comments

Comments
 (0)