leetcode/.drone.yml

38 lines
742 B
YAML
Raw Normal View History

2022-10-27 09:31:40 +00:00
kind: pipeline
type: docker
name: test
platform:
os: linux
2022-12-11 09:41:17 +00:00
arch: arm64
2022-10-27 09:31:40 +00:00
trigger:
branch:
2022-12-04 07:08:37 +00:00
- master
2022-10-27 09:31:40 +00:00
steps:
2022-12-04 07:08:37 +00:00
- name: test
image: docker.io/sainnhe/cmake:latest
commands:
- cmake .
- cmake --build . --parallel $(nproc) --target all
- ctest
- 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