mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 08:23:59 +00:00
cargo test + service
This commit is contained in:
parent
cdc7df8625
commit
84ac188cee
1 changed files with 23 additions and 15 deletions
38
.drone.yml
38
.drone.yml
|
@ -2,13 +2,15 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build lemmy docker image
|
- name: cargo test
|
||||||
image: docker/compose:alpine-1.27.4
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
volumes:
|
environment:
|
||||||
- name: docker_sock
|
- LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||||
path: /var/run/docker.sock
|
- RUST_BACKTRACE=1
|
||||||
|
- RUST_TEST_THREADS=1
|
||||||
commands:
|
commands:
|
||||||
- docker build . --file docker/dev/Dockerfile --tag dessalines/lemmy:travis
|
- cargo check --all
|
||||||
|
- cargo test --workspace --no-fail-fast
|
||||||
|
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
image: docker/compose:alpine-1.27.4
|
image: docker/compose:alpine-1.27.4
|
||||||
|
@ -33,20 +35,26 @@ steps:
|
||||||
- docker-compose down
|
- docker-compose down
|
||||||
|
|
||||||
- name: make release build and push to docker hub
|
- name: make release build and push to docker hub
|
||||||
image: docker/compose:alpine-1.27.4
|
image: plugins/docker
|
||||||
volumes:
|
settings:
|
||||||
- name: docker_sock
|
dockerfile: docker/prod/Dockerfile
|
||||||
path: /var/run/docker.sock
|
username: kevinbacon
|
||||||
commands:
|
password: pa55word
|
||||||
- docker build . --file docker/prod/Dockerfile --tag dessalines/lemmy:travis
|
repo: dessalines/lemmy
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
tags:
|
||||||
- docker tag dessalines/lemmy:travis dessalines/lemmy:v0.8.10
|
- latest
|
||||||
- docker push dessalines/lemmy:v0.8.10
|
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/feature-*
|
- refs/heads/feature-*
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: postgres
|
||||||
|
image: postgres:12-alpine
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER: lemmy
|
||||||
|
- POSTGRES_PASSWORD: password
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
host:
|
host:
|
||||||
|
|
Loading…
Reference in a new issue