steps:

  - label: cucumber_tests_stable
    commands:
      - asdf global rust stable
      - bundle install
      - bundle exec cucumber
    env:
      - CUCUMBER_TESTS: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_stable
    commands:
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust stable
      - make test
    env:
      - CARGO_TESTS_STABLE: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_beta
    commands:
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust beta
      - make test
    env:
      - CARGO_TESTS_BETA: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_defined
    commands:
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust 1.26.0
      - make test
    env:
      - CARGO_TESTS_DEFINED: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

steps:

  - label: cucumber_tests_stable
    commands:
      - . /opt/asdf/asdf.sh
      - asdf global rust stable
      - bundle install
      - bundle exec cucumber
    env:
      - CUCUMBER_TESTS: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_stable
    commands:
      - . /opt/asdf/asdf.sh
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust stable
      - make test
    env:
      - CARGO_TESTS_STABLE: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_beta
    commands:
      - . /opt/asdf/asdf.sh
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust beta
      - make test
    env:
      - CARGO_TESTS_BETA: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

  - label: cargo_tests_defined
    commands:
      - . /opt/asdf/asdf.sh
      - eval "$(/opt/chefdk/bin/chef shell-init bash)"
      - asdf global rust 1.26.0
      - make test
    env:
      - CARGO_TESTS_DEFINED: 1
    plugins:
      docker#v1.1.1:
        image: "chefes/releng-base"

Enable asdf by sourcing the setup file
Enable asdf by sourcing the setup file

Signed-off-by: Scott Hain <54f99c3933fb11a028e0e31efcf2f4c9707ec4bf@chef.io>
