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

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

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

Loading…
Cancel
Save