You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dust-Mail/.drone.yml

83 lines
1.6 KiB

kind: pipeline
type: docker
name: test-pop
platform:
os: linux
arch: amd64
services:
- name: greenmail
image: 'greenmail/standalone:1.6.12'
environment:
GREENMAIL_OPTS: "-Dgreenmail.verbose -Dgreenmail.setup.test.pop3 -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.users=test:localhost"
steps:
- name: Run pop3 tests
image: rust:1.61
pull: if-not-exists
volumes:
- name: cache
path: /drone/src/target
environment:
SERVER: "greenmail"
PORT: "3110"
USERNAME: "test"
PASSWORD: "localhost"
commands:
- cargo fetch --locked
- cargo test --package async-pop3
volumes:
- name: cache
host:
path: /tmp/drone/cache/dust-mail/target
---
kind: pipeline
type: docker
name: test-autoconfig
platform:
os: linux
arch: amd64
steps:
- name: Run autoconfig tests
image: rust:1.61
pull: if-not-exists
volumes:
- name: cache
path: /drone/src/target
commands:
- cargo fetch --locked
- cargo test --package autoconfig
volumes:
- name: cache
host:
path: /tmp/drone/cache/dust-mail/target
---
kind: pipeline
name: test-web
type: docker
steps:
- name: Test web app
image: node:lts
pull: if-not-exists
volumes:
- name: cache
path: "/drone/src/.pnpm-store"
commands:
- corepack enable
- corepack prepare pnpm@v7.28.0 --activate
- pnpm install --frozen-lockfile
- pnpm run deploy --filter @dust-mail/web
volumes:
- name: cache
host:
path: /tmp/drone/cache/dust-mail/pnpm-store