2019-01-25 18:59:16 -08:00
# Copyright © 2018– 2019 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 :
2019-02-02 15:30:30 -08:00
- TARGET : x86_64-pc-windows-msvc
2019-01-25 18:59:16 -08:00
- TARGET : x86_64-pc-windows-gnu
2019-02-02 15:30:30 -08:00
- TARGET : i686-pc-windows-msvc
2019-01-25 18:59:16 -08:00
- TARGET : i686-pc-windows-gnu
cache :
2020-02-13 04:47:11 -08:00
- '%USERPROFILE%\.cargo\registry\cache'
2019-01-25 18:59:16 -08:00
install :
2019-12-31 08:30:28 -08:00
- set PATH=C:\msys64\usr\bin;%USERPROFILE%\.cargo\bin;%PATH%
2019-01-25 18:59:16 -08:00
- 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
2020-09-02 04:03:23 -07:00
- rustup toolchain install --profile minimal beta-%TARGET% 1.44.0-%TARGET%
2020-07-16 02:13:17 -07:00
- rustup component add --toolchain beta-%TARGET% clippy
2019-01-25 18:59:16 -08:00
build : false
before_test :
2019-12-31 08:30:28 -08:00
- bash -c "if [ -d $USERPROFILE/.cargo/registry/src ]; then rm -r $USERPROFILE/.cargo/src; fi"
2020-02-13 04:47:11 -08:00
- bash -c "if [ -d $USERPROFILE/.cargo/registry/cache ]; then cd $USERPROFILE/.cargo/registry; find cache -name \*.crate | sort; fi"
2019-01-25 18:59:16 -08:00
test_script :
2020-07-16 01:35:00 -07:00
- cargo +beta-%TARGET% clippy --all-targets --features "fail-on-warnings az f16 num-traits serde std"
- cargo +beta-%TARGET% test --release --features "fail-on-warnings az f16 num-traits serde std"
2020-09-02 04:03:23 -07:00
- cargo +1.44.0-%TARGET% test --lib --features "fail-on-warnings az f16 num-traits serde std"
2019-01-25 18:59:16 -08:00
after_test :
2020-02-13 04:47:11 -08:00
- 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"