fixed/.appveyor.yml

73 lines
4.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright © 20182019 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
cache:
- '%USERPROFILE%\.cargo\registry\cache'
install:
- set PATH=C:\msys64\usr\bin;%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 toolchain install --profile minimal beta-%TARGET% 1.44.0-%TARGET%
- rustup component add --toolchain beta-%TARGET% rustfmt clippy
build: false
before_test:
- bash -c "if [ -d $USERPROFILE/.cargo/registry/src ]; then rm -r $USERPROFILE/.cargo/src; fi"
- bash -c "if [ -d $USERPROFILE/.cargo/registry/cache ]; then cd $USERPROFILE/.cargo/registry; find cache -name \*.crate | sort; fi"
test_script:
- cargo +beta-%TARGET% clippy --all-targets --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 num-traits serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 num-traits std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 num-traits"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16 std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az f16"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az num-traits serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az num-traits serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az num-traits std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az num-traits"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings az"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 num-traits serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 num-traits serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 num-traits std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 num-traits"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16 std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings num-traits serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings num-traits serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings num-traits std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings num-traits"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings serde std"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings serde"
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings std"
- cargo +beta-%TARGET% check --all-targets --features fail-on-warnings
- cargo +beta-%TARGET% test --release --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-%TARGET% fmt -- --check
- cargo +1.44.0-%TARGET% test --lib --features "fail-on-warnings az f16 num-traits serde std"
after_test:
- bash -c "if [ -d $USERPROFILE/.cargo/registry/cache ]; then cd $USERPROFILE/.cargo/registry; for c in cache/*/*.crate; do s=src/${c#cache/}; if [ ! -e ${s/.crate/} ]; then rm -v $c; fi; done; find cache -name \*.crate | sort; fi"