cache:
  - 'target -> appveyor.yml'
  - 'C:\Users\appveyor\.cargo'

environment:
  GITHUB_AUTH_TOKEN:
    secure: OIMAVZAsCzaNv3emTg9MlxxuA0vi2lwJM41cEtTjb9p1CQbDEO3riYwcVzLDjhZi

install:
  # Install rust, x86_64-pc-windows-msvc host
  # FIXME: switch back to win.rustup.rs
  - curl -sSf -o rustup-init.exe https://dev-static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe
  - rustup-init.exe -y
  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  - rustup default nightly-2016-05-22-i686-pc-windows-msvc

  # let's see what we got
  - where rustc cargo
  - rustc -vV
  - cargo -vV
  - set CARGO_TARGET_DIR=%CD%\target

build: false

test_script:
  - powershell -File build-win.ps1

after_test:
  - powershell -File .ci/deploy.ps1

cache:
  - 'target -> appveyor.yml'
  - 'C:\Users\appveyor\.cargo'

environment:
  TARGET: i686-pc-windows-msvc
  GITHUB_AUTH_TOKEN:
    secure: OIMAVZAsCzaNv3emTg9MlxxuA0vi2lwJM41cEtTjb9p1CQbDEO3riYwcVzLDjhZi

install:
  # Install rust, x86_64-pc-windows-msvc host
  # FIXME: switch back to win.rustup.rs
  - curl -sSf -o rustup-init.exe https://dev-static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe
  - rustup-init.exe -y
  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  - rustup default nightly-2016-05-22-%TARGET%

  # let's see what we got
  - where rustc cargo
  - rustc -vV
  - cargo -vV
  - set CARGO_TARGET_DIR=%CD%\target

build: false

test_script:
  - powershell -File build-win.ps1

after_test:
  - powershell -File .ci/deploy.ps1

Set the target var again
Set the target var again
