I have a job that always fails. But it fails in a bad way. The compiler is buggy and generates bad code, so I get an endless stream of application assertions on a certain test. The application uses a custom assert in debug builds that raises a SIGTRAP
and not a SIGKILL
, so the app does not die.
After about 50 minutes Travis kills the job.
I would like to mark the job as failed before it is run. Something like the following in .travis.yml
(notice fail: yes
):
- os: linux
name: Debug build, Clang, Linux, s390x
arch: s390x
compiler: clang
dist: bionic
fail: yes
env:
- BUILD_OS=linux
- BUILD_MODE=debug
Or maybe:
jobs:
...
fail_start:
-name: name: Debug build, Clang, Linux, s390x
I don’t want to delete the job because I want the record of the problem platform.
Is there a way to fail a job before it is run?