leetcode/.woodpecker/test.yml

34 lines
743 B
YAML
Raw Normal View History

2022-12-22 10:13:39 +00:00
# trigger:
# branch:
# - master
pipeline:
test:
image: docker.io/sainnhe/cmake:latest
when:
- event: push
branch: master
commands:
- cmake .
- cmake --build . --parallel $(nproc) --target all
# 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