]> Untitled Git - lemmy.git/commitdiff
change dir to read config
authorFelix Ableitner <me@nutomic.com>
Thu, 10 Dec 2020 19:19:17 +0000 (20:19 +0100)
committerFelix Ableitner <me@nutomic.com>
Thu, 10 Dec 2020 19:19:17 +0000 (20:19 +0100)
.drone.yml
api_tests/prepare-drone-federation-test.sh

index 1e6544ecb89a6277209a9b39c3e19660cd39ca03..7350b1196d5756ac2a6b5cc864e1124f41aa0d2c 100644 (file)
@@ -76,6 +76,7 @@ steps:
     commands:
       - cargo build
 
+  # TODO: lemmy config is missing
   - name: run federation tests
     image: node:15-buster-slim
     user: root
index d8f66a12af3e80f441f428dbc8f0edf9fc840217..96393f68018d76d212c6451bfb9bdb00d7d771f2 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/bash
 set -e
 
+# change folder so the config can be read from the default location
+cd ..
+
 export LEMMY_JWT_SECRET=changeme
 export LEMMY_FEDERATION__ENABLED=true
 export LEMMY_TLS_ENABLED=false
@@ -18,7 +21,7 @@ LEMMY_HOSTNAME=lemmy-alpha:8541 \
   LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon \
   LEMMY_SETUP__ADMIN_USERNAME=lemmy_alpha \
   LEMMY_SETUP__SITE_NAME=lemmy-alpha \
-  ../target/debug/lemmy_server &
+  target/debug/lemmy_server &
 
 echo "start beta"
 LEMMY_HOSTNAME=lemmy-beta:8551 \
@@ -27,7 +30,7 @@ LEMMY_HOSTNAME=lemmy-beta:8551 \
   LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-alpha,lemmy-gamma,lemmy-delta,lemmy-epsilon \
   LEMMY_SETUP__ADMIN_USERNAME=lemmy_beta \
   LEMMY_SETUP__SITE_NAME=lemmy-beta \
-  ../target/debug/lemmy_server &
+  target/debug/lemmy_server &
 
 echo "start gamma"
 LEMMY_HOSTNAME=lemmy-gamma:8561 \
@@ -36,7 +39,7 @@ LEMMY_HOSTNAME=lemmy-gamma:8561 \
   LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-alpha,lemmy-beta,lemmy-delta,lemmy-epsilon \
   LEMMY_SETUP__ADMIN_USERNAME=lemmy_gamma \
   LEMMY_SETUP__SITE_NAME=lemmy-gamma \
-  ../target/debug/lemmy_server &
+  target/debug/lemmy_server &
 
 echo "start delta"
 # An instance with only an allowlist for beta
@@ -46,7 +49,7 @@ LEMMY_HOSTNAME=lemmy-delta:8571 \
   LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-beta \
   LEMMY_SETUP__ADMIN_USERNAME=lemmy_delta \
   LEMMY_SETUP__SITE_NAME=lemmy-delta \
-  ../target/debug/lemmy_server &
+  target/debug/lemmy_server &
 
 echo "start epsilon"
 # An instance who has a blocklist, with lemmy-alpha blocked
@@ -56,7 +59,7 @@ LEMMY_HOSTNAME=lemmy-epsilon:8581 \
   LEMMY_FEDERATION__BLOCKED_INSTANCES=lemmy-alpha \
   LEMMY_SETUP__ADMIN_USERNAME=lemmy_epsilon \
   LEMMY_SETUP__SITE_NAME=lemmy-epsilon \
-  ../target/debug/lemmy_server &
+  target/debug/lemmy_server &
 
 echo "wait for all instances to start"
 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8541/api/v1/site')" != "200" ]]; do sleep 1; done