leetcode/.drone.yml

39 lines
676 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-10-28 08:44:33 +00:00
image: docker.io/sainnhe/gcc:latest
2022-10-27 09:31:40 +00:00
commands:
- apk add cmake make
- 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