From 181374d2cc5f751f0e41a8c4cb938cad118a5a4d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 10 Jul 2020 14:16:42 -0400 Subject: Fixing travis, adding a test.sh script. --- server/test.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 server/test.sh (limited to 'server/test.sh') diff --git a/server/test.sh b/server/test.sh new file mode 100755 index 00000000..9a8e445b --- /dev/null +++ b/server/test.sh @@ -0,0 +1,5 @@ +#!/bin/sh +export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy +diesel migration run +export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy +RUST_TEST_THREADS=1 cargo test --workspace -- cgit v1.2.3