leetcode/.drone.yml

38 lines
653 B
YAML
Raw Normal View History

2022-10-27 09:31:40 +00:00
kind: pipeline
type: docker
name: test
platform:
os: linux
arch: amd64
trigger:
branch:
2022-11-01 13:07:46 +00:00
- master
2022-10-27 09:31:40 +00:00
steps:
- name: test
2022-11-02 09:46:16 +00:00
image: docker.io/sainnhe/cmake:latest
2022-10-27 09:31:40 +00:00
commands:
- cmake .
- make -j$(nproc)
- ctest
2022-10-27 09:48:55 +00:00
- name: notify
image: drillster/drone-email
when:
status:
- failure
settings:
from.address:
from_secret: EMAIL_ADDRESS
from.name:
from_secret: EMAIL_SENDER
host:
from_secret: EMAIL_HOST
port:
from_secret: EMAIL_PORT
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
no_starttls: true
recipients:
- i@sainnhe.dev