alice-biometrics/lume

Add option to run specific commands depending on the operative system

Closed this issue · 1 comments

First approach

Install

install:
  run_ubuntu:
    - sudo apt update
    - sudo apt install myprogram
  run_macos:
    - brew install myprogram
  run:
    - echo "Hello"

Steps

clean:
  run_ubuntu:
    - sudo apt update
    - sudo apt install myprogram
  run_macos:
    - brew install myprogram
  run:
    - echo "Hello"

We should implement it respecting the definition order of the runs.

I'd prefer the one proposed by @fgsalomon

install:
  run:
    ubuntu:
       - sudo apt update
       - sudo apt install myprogram
     macos:
       - brew install myprogram
     all:
      - echo "Hello"