]> Untitled Git - lemmy.git/commitdiff
use apk add, remove diesel migrate from test.sh
authorFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 14:56:20 +0000 (15:56 +0100)
committerFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 14:56:20 +0000 (15:56 +0100)
.drone.yml
test.sh

index 60f4fb65872e945dc7c28941872924514e722c74..2e1423af17abdd665231172475bde8570054ad6b 100644 (file)
@@ -49,8 +49,7 @@ steps:
   - name: run federation tests
     image: node:15-alpine3.12
     commands:
-      - apt-get update
-      - apt-get -y install --no-install-recommends bash curl postgresql-client
+      - apk add bash curl postgresql-client
       - bash api_tests/prepare-drone-federation-test.sh
       - cd api_tests/
       - yarn
diff --git a/test.sh b/test.sh
index 02e4faeed8571f68ffb09995a5cd1058ecf2a1d1..ef2e608f4574c66377ec2e8fd400dba8500c99ef 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
-export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
-diesel migration run
+set -e
+
 export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
 # Integration tests only work on stable due to a bug in config-rs
 # https://github.com/mehcode/config-rs/issues/158