# TODO: Maybe add caching
cache:
  - '%HOMEPATH%\.cargo -> .appveyor.yml'

environment:
  EXAMPLES: console membership turbo_blank
  VERBOSE: true
  # This isn't expected to pass yet
  #- EXAMPLES="duration"
  matrix:
    # 32-bit
    - RUBY_VERSION: 23
      RUST_HOST: i686-pc-windows-msvc
    # 64-bit
    - RUBY_VERSION: 23-x64
      RUST_HOST: x86_64-pc-windows-msvc

install:
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;C:\Ruby%RUBY_VERSION%\DevKit\bin;C:\Ruby%RUBY_VERSION%\DevKit\mingw\bin;%HOMEPATH%\.cargo\bin;%APPVEYOR_BUILD_FOLDER%\ruby\windows_build;%PATH%
  - echo %PATH%
  - set HELIX_ROOT=%APPVEYOR_BUILD_FOLDER%
  - IF NOT EXIST %HOMEPATH%\.cargo\bin (curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly --default-host %RUST_HOST% -y)
  - bash ./scripts/ci-install

test_script:
  - bash ./scripts/ci-test

build: off

# TODO: Maybe add caching
cache:
  - '%HOME%\.cargo -> .appveyor.yml'

environment:
  EXAMPLES: console membership turbo_blank
  VERBOSE: true
  # This isn't expected to pass yet
  #- EXAMPLES="duration"
  matrix:
    # 32-bit
    - RUBY_VERSION: 23
      RUST_HOST: i686-pc-windows-msvc
    # 64-bit
    - RUBY_VERSION: 23-x64
      RUST_HOST: x86_64-pc-windows-msvc

install:
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;C:\Ruby%RUBY_VERSION%\DevKit\bin;C:\Ruby%RUBY_VERSION%\DevKit\mingw\bin;%HOME%\.cargo\bin;%APPVEYOR_BUILD_FOLDER%\ruby\windows_build;%PATH%
  - echo %PATH%
  - set HELIX_ROOT=%APPVEYOR_BUILD_FOLDER%
  - IF NOT EXIST %HOME%\.cargo\bin (curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly --default-host %RUST_HOST% -y)
  - bash ./scripts/ci-install

test_script:
  - bash ./scripts/ci-test

build: off

Fix Cargo path on AppVeyor
Fix Cargo path on AppVeyor
