2022-12-22 12:45:20 +00:00
|
|
|
branches: master
|
|
|
|
|
2022-12-22 10:13:39 +00:00
|
|
|
pipeline:
|
2022-12-28 06:52:43 +00:00
|
|
|
test:
|
|
|
|
image: docker.io/sainnhe/cmake:latest
|
|
|
|
commands:
|
|
|
|
- cmake .
|
|
|
|
- cmake --build . --parallel $(nproc) --target all
|
|
|
|
- ctest
|
2022-12-27 03:55:49 +00:00
|
|
|
notify:
|
2022-12-28 07:01:29 +00:00
|
|
|
image: docker.io/sainnhe/mailer:latest
|
2022-12-28 06:48:10 +00:00
|
|
|
commands:
|
|
|
|
- mailer
|
|
|
|
secrets:
|
|
|
|
[
|
|
|
|
MAILER_FROM_ADDRESS,
|
|
|
|
MAILER_FROM_NAME,
|
|
|
|
MAILER_RECIPIENTS,
|
|
|
|
MAILER_USER_NAME,
|
|
|
|
MAILER_PASSWORD,
|
|
|
|
MAILER_HOST,
|
|
|
|
MAILER_PORT,
|
|
|
|
MAILER_USE_STARTTLS,
|
|
|
|
]
|
|
|
|
environment:
|
2022-12-28 06:51:32 +00:00
|
|
|
- MAILER_SUBJECT=Run Failed
|
2022-12-28 06:48:10 +00:00
|
|
|
- MAILER_BODY=${CI_BUILD_LINK}
|
2022-12-28 06:52:43 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|