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:
|
2019-06-27 14:38:47 -07:00
|
|
|
|
- '%USERPROFILE%\.cargo\registry\cache -> Cargo.toml'
|
2019-01-25 18:59:16 -08:00
|
|
|
|
|
|
|
|
|
install:
|
2019-02-02 15:30:30 -08:00
|
|
|
|
- set PATH=%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
|
2019-08-02 06:47:05 -07:00
|
|
|
|
- rustup install beta-%TARGET% 1.31.1-%TARGET%
|
2019-01-25 18:59:16 -08:00
|
|
|
|
- rustup component add --toolchain beta-%TARGET% rustfmt clippy
|
|
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
|
|
before_test:
|
2019-02-02 15:30:30 -08:00
|
|
|
|
- C:\msys64\usr\bin\bash -c "if [ -d ""$USERPROFILE/.cargo/registry/cache"" ]; then cd ""$USERPROFILE/.cargo/registry""; /c/msys64/usr/bin/find cache -name \*.crate; fi"
|
2019-01-25 18:59:16 -08:00
|
|
|
|
|
|
|
|
|
test_script:
|
2019-01-29 09:34:18 -08:00
|
|
|
|
- cargo +beta-%TARGET% clippy --all-targets --features "fail-on-warnings f16 serde"
|
|
|
|
|
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings serde"
|
|
|
|
|
- cargo +beta-%TARGET% check --all-targets --features "fail-on-warnings f16"
|
2019-01-26 04:49:19 -08:00
|
|
|
|
- cargo +beta-%TARGET% check --all-targets --features fail-on-warnings
|
2019-01-26 15:39:24 -08:00
|
|
|
|
- cargo +beta-%TARGET% test --release --features "fail-on-warnings f16 serde"
|
2019-01-25 18:59:16 -08:00
|
|
|
|
- cargo +beta-%TARGET% fmt -- --check
|
2019-08-02 06:47:05 -07:00
|
|
|
|
- cargo +1.31.1-%TARGET% test --features "fail-on-warnings f16 serde"
|
2019-01-25 18:59:16 -08:00
|
|
|
|
|
|
|
|
|
after_test:
|
2019-02-02 15:30:30 -08:00
|
|
|
|
- C:\msys64\usr\bin\bash -c "if [ -d ""$USERPROFILE/.cargo/registry/cache"" ]; then cd ""$USERPROFILE/.cargo/registry""; /c/msys64/usr/bin/find cache -name \*.crate; fi"
|