leetcode/.drone.yml
Sainnhe Park 50bf6b650b
All checks were successful
continuous-integration/drone/push Build is passing
Switch to master branch
2022-11-01 21:07:46 +08:00

39 lines
676 B
YAML

kind: pipeline
type: docker
name: test
platform:
os: linux
arch: amd64
trigger:
branch:
- master
steps:
- name: test
image: docker.io/sainnhe/gcc:latest
commands:
- apk add cmake make
- cmake .
- make -j$(nproc)
- 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