version: '0.1.0-RC0-b{build}'

platform:
  - x86

install:
  # Installing Rust distribution
  - choco install --yes --x86 --version=1.8 rust
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust stable GNU 1.8\bin
  - rustc -V
  - cargo -V
  # Installing InnoSetup
  - choco install --yes InnoSetup
  - set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

test_script:
  - cargo test --verbose

build_script:
  - cargo build --verbose --release
  - iscc installer/FlightVars.iss /DPWD=%CD% /DAppVersion=%APPVEYOR_BUILD_VERSION%

artifacts:
  - path: installer/*.exe
deploy:
  description: 'FlightVars plugin for FSX/P3D'
  provider: GitHub
  auth_token:
    secure: 4QP9Hc3xgTn+8pJQTfK7Ooq4quBsecJX84qgBqnta3EnbeNTiEDCrDCJ2KNHn1vZ
  draft: false
  prerelease: true
  on:
    appveyor_repo_tag: true        # deploy on tag push only

version: '0.1.0-RC0-b{build}'

platform:
  - x86

install:
  # Installing Rust distribution
  - choco install --yes --x86 --version=1.11 rust
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust stable GNU 1.11\bin
  - rustc -V
  - cargo -V
  # Installing InnoSetup
  - choco install --yes InnoSetup
  - set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

test_script:
  - cargo test --verbose

build_script:
  - cargo build --verbose --release
  - iscc installer/FlightVars.iss /DPWD=%CD% /DAppVersion=%APPVEYOR_BUILD_VERSION%

artifacts:
  - path: installer/*.exe
deploy:
  description: 'FlightVars plugin for FSX/P3D'
  provider: GitHub
  auth_token:
    secure: 4QP9Hc3xgTn+8pJQTfK7Ooq4quBsecJX84qgBqnta3EnbeNTiEDCrDCJ2KNHn1vZ
  draft: false
  prerelease: true
  on:
    appveyor_repo_tag: true        # deploy on tag push only

Use Rust 1.11 rather than 1.8 for builds
Use Rust 1.11 rather than 1.8 for builds

