mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-11 18:46:32 +00:00
try federation tests
This commit is contained in:
parent
a94fd6aaf6
commit
6391ec16ed
1 changed files with 33 additions and 24 deletions
57
.drone.yml
57
.drone.yml
|
@ -41,10 +41,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cargo install diesel_cli --no-default-features --features postgres
|
- cargo install diesel_cli --no-default-features --features postgres
|
||||||
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
||||||
# just to disable this temporarily
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/tags/*
|
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
|
@ -68,27 +64,43 @@ steps:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
image: docker/compose:alpine-1.27.4
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
|
user: root
|
||||||
|
environment:
|
||||||
|
- LEMMY_JWT_SECRET=changeme
|
||||||
|
- LEMMY_FEDERATION__ENABLED=true
|
||||||
|
- LEMMY_TLS_ENABLED=false
|
||||||
|
- LEMMY_SETUP__ADMIN_PASSWORD=lemmy
|
||||||
|
- LEMMY_RATE_LIMIT__POST=99999
|
||||||
|
- LEMMY_RATE_LIMIT__REGISTER=99999
|
||||||
|
- LEMMY_CAPTCHA__ENABLED=false
|
||||||
|
- RUST_BACKTRACE=1
|
||||||
|
- RUST_LOG=debug
|
||||||
|
# TODO: these are different for each instance
|
||||||
|
- LEMMY_HOSTNAME=lemmy-alpha:8541
|
||||||
|
- LEMMY_DATABASE_URL=postgres://lemmy:password@postgres_alpha:5432/lemmy
|
||||||
|
- LEMMY_FEDERATION__ALLOWED_INSTANCES=lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon
|
||||||
|
#- LEMMY_PORT=8541
|
||||||
|
- LEMMY_SETUP__ADMIN_USERNAME=lemmy_alpha
|
||||||
|
- LEMMY_SETUP__SITE_NAME=lemmy-alpha
|
||||||
commands:
|
commands:
|
||||||
- cd docker/travis/
|
|
||||||
- mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
- mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
||||||
- chown -R 991:991 volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
- chown -R 991:991 volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
||||||
- docker-compose up -d
|
- LEMMY_PORT=8541 cargo run &
|
||||||
- pushd ../../api_tests
|
- LEMMY_PORT=8551 cargo run &
|
||||||
- echo "Waiting for Lemmy to start..."
|
- cd api_tests/
|
||||||
- while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8541/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
||||||
- while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8551/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
||||||
- while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8561/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
||||||
- while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8571/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
||||||
- while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8581/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
||||||
- yarn
|
- yarn
|
||||||
- yarn api-test
|
- yarn api-test
|
||||||
- popd
|
|
||||||
- docker-compose down
|
- name: create docker tags
|
||||||
# just to disable this temporarily
|
image: plugins/docker
|
||||||
|
user: root
|
||||||
|
commands:
|
||||||
|
# TODO: remove newline, add `latest` (eg `0.9.1,latest`)
|
||||||
|
- git describe > .tags
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
- name: make release build and push to docker hub
|
- name: make release build and push to docker hub
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -97,12 +109,9 @@ steps:
|
||||||
#username: kevinbacon
|
#username: kevinbacon
|
||||||
#password: pa55word
|
#password: pa55word
|
||||||
repo: dessalines/lemmy
|
repo: dessalines/lemmy
|
||||||
purge: true
|
when:
|
||||||
tags:
|
ref:
|
||||||
- latest
|
- refs/tags/*
|
||||||
#when:
|
|
||||||
# ref:
|
|
||||||
# - refs/tags/*
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: database
|
||||||
|
|
Loading…
Reference in a new issue