Conditional tests
ci/woodpecker/push/test Pipeline was successful Details

This commit is contained in:
Sainnhe Park 2023-01-31 16:58:05 +08:00
parent 837812e599
commit b2d586fd41
1 changed files with 5 additions and 3 deletions

View File

@ -2,12 +2,17 @@ branches: master
pipeline:
test:
when:
path: [".woodpecker/*", "include/*", "src/*", "tests/*", "CMakeLists.txt"]
image: docker.io/sainnhe/cmake:latest
commands:
- cmake .
- cmake --build . --parallel $(nproc) --target all
- ctest
notify:
when:
status:
- failure
image: docker.io/sainnhe/mailer:latest
commands:
- mailer
@ -25,6 +30,3 @@ pipeline:
environment:
- MAILER_SUBJECT=Run Failed
- MAILER_BODY=${CI_BUILD_LINK}
when:
status:
- failure