mirror of https://github.com/LemmyNet/lemmy.git
use apk add, remove diesel migrate from test.sh
parent
a56db9a47c
commit
d859844fea
|
@ -49,8 +49,7 @@ steps:
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
image: node:15-alpine3.12
|
image: node:15-alpine3.12
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apk add bash curl postgresql-client
|
||||||
- apt-get -y install --no-install-recommends bash curl postgresql-client
|
|
||||||
- bash api_tests/prepare-drone-federation-test.sh
|
- bash api_tests/prepare-drone-federation-test.sh
|
||||||
- cd api_tests/
|
- cd api_tests/
|
||||||
- yarn
|
- yarn
|
||||||
|
|
4
test.sh
4
test.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
set -e
|
||||||
diesel migration run
|
|
||||||
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||||
# Integration tests only work on stable due to a bug in config-rs
|
# Integration tests only work on stable due to a bug in config-rs
|
||||||
# https://github.com/mehcode/config-rs/issues/158
|
# https://github.com/mehcode/config-rs/issues/158
|
||||||
|
|
Loading…
Reference in New Issue