leetcode/.woodpecker/test.yml
Sainnhe Park 57cba1f815
All checks were successful
ci/woodpecker/push/test Pipeline was successful
Use quay.io
2023-07-09 16:13:00 +08:00

33 lines
711 B
YAML

branches: master
pipeline:
test:
when:
path: [".woodpecker/*", "include/*", "src/*", "tests/*", "CMakeLists.txt"]
image: quay.io/sainnhe/cmake:latest
commands:
- cmake .
- cmake --build . --parallel $(nproc) --target all
- ctest
notify:
when:
status:
- failure
image: quay.io/sainnhe/mailer:latest
commands:
- mailer
secrets:
[
MAILER_FROM_ADDRESS,
MAILER_FROM_NAME,
MAILER_RECIPIENTS,
MAILER_USER_NAME,
MAILER_PASSWORD,
MAILER_HOST,
MAILER_PORT,
MAILER_USE_STARTTLS,
]
environment:
- MAILER_SUBJECT=Run Failed
- MAILER_BODY=${CI_BUILD_LINK}