update CI configurations

without.crypto
Myk Melez 6 years ago
parent 5849f37f31
commit e51b36e8a9
  1. 20
      .appveyor.yml
  2. 7
      .travis.yml
  3. 19
      azure-pipelines-template.yml

@ -1,11 +1,21 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
TOOLCHAIN: stable
- TARGET: i686-pc-windows-msvc
TOOLCHAIN: stable
- TARGET: x86_64-pc-windows-msvc
TOOLCHAIN: beta
- TARGET: i686-pc-windows-msvc
TOOLCHAIN: beta
- TARGET: x86_64-pc-windows-msvc
TOOLCHAIN: nightly
- TARGET: i686-pc-windows-msvc
TOOLCHAIN: nightly
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %TOOLCHAIN%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
@ -15,9 +25,11 @@ build_script:
test_script:
- SET RUST_BACKTRACE=1
- cargo test --target %TARGET% --all -v
- cargo test --release --target %TARGET% --all -v
- cargo test --target %TARGET% --all --verbose
- cargo test --release --target %TARGET% --all --verbose
- if [%TOOLCHAIN%]==[nightly] (
cargo bench --target %TARGET% --all --verbose
)
cache:
- C:\Users\appveyor\.cargo\registry
- target

@ -11,11 +11,14 @@ os:
rust:
- 1.30.0
- stable
- beta
- nightly
script:
- cargo build --verbose
- export RUST_BACKTRACE=1
- cargo test --all --verbose
- cargo test --release --all --verbose
- if [[ $TRAVIS_RUST_VERSION = nightly* ]]; then
env RUST_BACKTRACE=1 cargo test --all -v;
env RUST_BACKTRACE=1 cargo test --all -v --release;
cargo bench --all --verbose;
fi

@ -32,18 +32,27 @@ jobs:
displayName: Query rust and cargo versions
- script: cargo build
displayName: Build
- script: |
cargo test --all --verbose
cargo test --release --all --verbose
displayName: Test
# Linux and macOS w/nightly toolchain.
# Ideally we'd only run the script for the nightly toolchain, but I can't
# figure out how to determine that within the Azure Pipelines conditional.
- ${{ if ne(parameters.name, 'Windows') }}:
- script: |
if [ "$RUSTUP_TOOLCHAIN" = 'nightly' ]
then cargo test
export RUST_BACKTRACE=1
if [ "$RUSTUP_TOOLCHAIN" = "nightly" ]
then cargo bench --all --verbose;
fi
displayName: Test
displayName: Bench
# Windows w/nightly toolchain.
# Ideally we'd only run the script for the nightly toolchain, but I can't
# figure out how to determine that within the Azure Pipelines conditional.
- ${{ if eq(parameters.name, 'Windows') }}:
- script: if "%RUSTUP_TOOLCHAIN%" == "nightly" cargo test
displayName: Test
- script: |
SET RUST_BACKTRACE=1
if "%RUSTUP_TOOLCHAIN%" == "nightly" (
cargo bench --all --verbose
)
displayName: Bench

Loading…
Cancel
Save