# Copyright © 2019–2021 Trevor Spiteri # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. skip_tags: true environment: matrix: - TARGET: x86_64-pc-windows-msvc - TARGET: x86_64-pc-windows-gnu - TARGET: i686-pc-windows-msvc - TARGET: i686-pc-windows-gnu install: - set PATH=%USERPROFILE%\.cargo\bin;%PATH% - curl -sSf -o rustup-init.exe https://win.rustup.rs - rustup-init.exe -y --default-host %TARGET% --default-toolchain none --no-modify-path - rustup --version - rustup install beta-%TARGET% nightly-%TARGET% 1.31.1-%TARGET% - rustup component add --toolchain beta-%TARGET% rustfmt clippy build: false test_script: - cargo +beta-%TARGET% clippy --all-targets --features fail-on-warnings - cargo +beta-%TARGET% test --features fail-on-warnings - cargo +beta-%TARGET% test --release --features fail-on-warnings - cargo +beta-%TARGET% fmt -- --check - cargo +nightly-%TARGET% test --features fail-on-warnings - cargo +nightly-%TARGET% test --release --features fail-on-warnings - cargo +1.31.1-%TARGET% test --features fail-on-warnings - cargo +1.31.1-%TARGET% test --release --features fail-on-warnings