2022-09-21 21:41:23 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: install
|
|
|
|
image: composer
|
|
|
|
commands:
|
|
|
|
- composer install
|
|
|
|
|
|
|
|
- name: test
|
2022-09-21 21:46:35 +02:00
|
|
|
image: php:latest
|
2022-09-21 21:51:40 +02:00
|
|
|
environment:
|
|
|
|
APP_KEY:
|
|
|
|
from_secret: APP_KEY
|
2022-09-21 21:41:23 +02:00
|
|
|
commands:
|
2022-09-21 21:44:18 +02:00
|
|
|
- vendor/bin/phpunit --configuration phpunit.xml
|
|
|
|
|
2022-10-14 11:29:14 +02:00
|
|
|
|
2022-09-21 21:44:18 +02:00
|
|
|
- name: Discord notification
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: webhook_id
|
|
|
|
webhook_token:
|
2022-10-14 11:31:34 +02:00
|
|
|
from_secret: webhook_token
|
|
|
|
|
2022-10-14 11:33:07 +02:00
|
|
|
- name: Docker
|
|
|
|
image: plugins/docker
|
|
|
|
repo: https://tea.nightly.town/Mangoberry/MangoNotes
|
|
|
|
username: nightlymania
|
|
|
|
password:
|
|
|
|
from_secret: dockerpasswd
|
|
|
|
when:
|
|
|
|
branch: master
|