realize
realize copied to clipboard
How don't run a script if some command fail?
how don't run a script if some command fail?
I have this realize.yml file
$ cat .realize.yaml
settings:
legacy:
force: false
interval: 0s
schema:
- name: my_project
path: .
commands:
vet:
status: true
run:
status: true
watcher:
extensions:
- go
- py
paths:
- /
ignored_paths:
- .git
- .realize
- vendor
scripts:
- type: after
command: pytest -vvrs
If the install command fails the script is executed anyway.
[11:52:34][MY_PROJECT] : Install
# path/my_project
./main.go:17:12: undefined: strings
exit status 2
[11:52:34][MY_PROJECT] : Command "pytest -vvrs"
commands are not conditioned to each other, but it is a feature that we have already implemented in the next version