environment:
    matrix:
        - RUST_INSTALL_TRIPLE: i686-pc-windows-gnu
          RUST_CHANNEL: stable
        - RUST_INSTALL_TRIPLE: x86_64-pc-windows-gnu
          RUST_CHANNEL: stable
        - RUST_INSTALL_TRIPLE: x86_64-pc-windows-msvc
          RUST_CHANNEL: nightly

install:
    - ps: Start-FileDownload "http://static.rust-lang.org/dist/channel-rust-${env:RUST_CHANNEL}"
    - ps: $env:RUST_INSTALLER = Select-String "${env:RUST_INSTALL_TRIPLE}.*exe" "channel-rust-${env:RUST_CHANNEL}" | select -exp line
    - ps: Start-FileDownload "http://static.rust-lang.org/dist/${env:RUST_INSTALLER}"
    - '%RUST_INSTALLER% /VERYSILENT /NORESTART /DIR="C:\Rust" /TYPE=full'
    - call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
    - SET PATH=C:\Rust\bin;%PATH%
    - SET PATH=C:\Rust\bin\rustlib\%RUST_INSTALL_TRIPLE%\bin;%PATH%
    - rustc --version
    - cargo --version

build: false

test_script:
    - cargo test

environment:
    matrix:
        - RUST_INSTALL_TRIPLE: i686-pc-windows-gnu
          RUST_CHANNEL: stable
        - RUST_INSTALL_TRIPLE: x86_64-pc-windows-gnu
          RUST_CHANNEL: stable
        - RUST_INSTALL_TRIPLE: x86_64-pc-windows-msvc
          RUST_CHANNEL: nightly

install:
    - ps: Start-FileDownload "http://static.rust-lang.org/dist/channel-rust-${env:RUST_CHANNEL}"
    - ps: $env:RUST_INSTALLER = Select-String "${env:RUST_INSTALL_TRIPLE}.*exe" "channel-rust-${env:RUST_CHANNEL}" | select -exp line
    - ps: Start-FileDownload "http://static.rust-lang.org/dist/${env:RUST_INSTALLER}"
    - '%RUST_INSTALLER% /VERYSILENT /NORESTART /DIR="C:\Rust" /TYPE=full'
    - call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
    - ps: $env:path = "C:\Rust\bin;C:\Rust\bin\rustlib\${env:RUST_INSTALL_TRIPLE}\bin;" + $env:path
    - rustc --version
    - cargo --version

build: false

test_script:
    - cargo test

Set path in another way
Set path in another way
