realize icon indicating copy to clipboard operation
realize copied to clipboard

How don't run a script if some command fail?

Open juanpabloaj opened this issue 7 years ago • 1 comments

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"

juanpabloaj avatar Aug 13 '18 15:08 juanpabloaj

commands are not conditioned to each other, but it is a feature that we have already implemented in the next version

asoseil avatar Aug 23 '18 09:08 asoseil